Stripping spaces replaced with dashes

Hoping that this is fairly easy! you use an image to download my media and I want the name of the image to be match name downloading of media. example Media Download name: my file name multimedia image: My-media - fichier.jpg how do I remove the {{item.name}} "' replace by ' par ' ''"

Magazines

{module_literature filter = 'class' itemId = "58993" collection = model "mediaCatalogues" =""}

{% for article on reverse mediaCatalogues.items-%}
{{item.name}}

{{item.name}}

{{item.description}}

View Download ({{item.fileSize}} KB)           
{% endfor}

Thanks, Luke

{{item.name | downcase: replace:' ', '-': Strip}}

If your making all lowercase, replace any space with one - and then stripping to remove all free space

Tags: Business Catalyst

Similar Questions

  • Replace with complex logical regular expression

    What is the best way to replace the input string with the following rules:

    1. all sequential occurrences of two or several hyphen-symbols (symbol: '-') must be replaced by a hyphen. So, if the input string is "-" then output should be ' - '. If the entry was "a-a-a", then output remains what it is.
    2. all occurrences of two or more space sequential symbols (symbol: "" "") must be replaced by a space. If the input string is "" then exit must therefore «» If the entry was "one one one" then exit remains as it is.
    3. once the 1-2 rules are applied after the rule applies: all occurrences of the space symbol followed immediately after the hyphen-symbol or vice verse-trait of Union followed by space should be replaced with the hyphen. So, if the input string is "»" or "-" then the output should be "«»". " If the entry was 'a - a', then output remains what it is.
    4. once the 1-2-3 rules are apllied follows the rule should be applied: String beginning and symbol of the end can only be space or hyphen. Therefore, if the input string is 'a' or '-a ' or 'a' or 'a-' and then the output should be 'a '.

    All rules 1 to 4 must be apllied to the input string.
    Example of replacement logic:
    entry: 'an aa - ss-ee -'
    output: "an aa-ss-ee."

    I think that I should use the function "regexp_replace" somehow.
    This solution below does not work because it produces two consecuent dashes "-":
    with t as(
     select 'a   aa ---- ss-ee -' str from dual
    )
    select regexp_replace(str, '--','-') a from t;
    /*a   aa -- ss-ee -*/
    Can you suggest a regular expression for it?

    Maybe something like this:

    SQL> with t as(
      2   select 'a   aa ---- ss-ee -' str from dual
      3  )
      4  select rtrim(rtrim(ltrim(ltrim(
      5         regexp_replace(regexp_replace(str, '(-| )\1+','\1'), '( -|- )', ' ')
      6         , '-') , ' '), '-'), ' ') a from t;
    
    A
    -----------
    a aa  ss-ee
    

    Notice how it ends with 2 spaces in a row in the Middle, because there was a segment with '-' (space followed by '-') which was replaced by a space.

  • With this new firefox updated. The (enter private browsing) is gone and replaced with (new private window). It is sort of back enter private browsing?

    With this new firefox updated. The (enter private browsing) is gone and replaced with (new private window). It is sort of back enter private browsing?

    You can drag links to the private browsing window (hover the icon on the task bar for this update of the Firefox window).

    If you drop the link on an empty space on the tab bar, then the link should open in a new tab.

  • Windows meeting space compatible with xp

    I have a vista with allowed meeting space. Can I collaborate with someone who always has an xp machine?

    Hello

    I'm afraid that Windows Meeting Space is not available on previous platforms or Windows XP and is not compatible with existing collaboration tools such as NetMeeting.

    Windows meeting space replaces Microsoft NetMeeting. It is available only to users of the Windows Vista operating system, because it is based on the features of Vista-to-peer network technology and uses Vista, such as WS-Discovery.

    Concerning
    Anand

  • My wife 6 iPhone would not take a charge.  The Apple store in Raleigh NC replaced with what they said, it was a NEW pohone.  I suspect that it was not new, but handed to nine. Can I know the serial number if it is new or refurbished?

    Tooke, he calls to the Apple store in Raliegh NC.  They were replaced with what they said, it was a NEW phone for $299.  I suspect that the phone is not NEW but handed to nine.  I can top by the serial number if the new or refurbished?  Number of Sedrial is FD * 5MD

    < personal information under the direction of the host >

    In general the replacements are not new.  They can be given to nine units, which are like new, maybe better.

    Apple has no obligation to provide a new iPhone in replacement under warranty or out of warranty replacement.

  • Why my computer automatically takes up with dashes until I can connect?

    My computer is a HP Pavilion A6600F, Windows 7 64 bit, and recently when I turn on the computer it automatically fills the sign in areas.  I had to hit enter twice before I can connect.  A few times when I want to do a search for something, he will fill this area with dashes and allow me to stop him.  I had to go through all the types of changes to work right.  It started just recently after I moved.  Would this be something loose or do I have to call in a specialist?

    adagarner wrote: my computer is a HP Pavilion A6600F, Windows 7 64 bit, and recently when I turn on the computer it automatically fills the sign in areas.  I had to hit enter twice before I can connect.  A few times when I want to do a search for something, he will fill this area with dashes and allow me to stop him.  I had to go through all the types of changes to work right.  It started just recently after I moved.  Would this be something loose or do I have to call in a specialist?

    Hello adagarner, you could try to go back to a Restore Point Windows before this problem appeared.

    Go to the start ORB, all programs, accessories, System Tools, System Restore. Click the system restore option and should open the window of Windows system restore. It may take a few seconds for it to open.

    Then are looking for a System Restore Point before the problem occurred.

    The system should reboot and the system starts on the normal desktop and a message if poster who advises the system was a success or that Windows was not able to restore the system.

    Sometimes it works and other times not, but may be worth a try.

  • I got the watch aluminum gold. The soundtrack has metal fittings of color gold. Are there strips of spare with accessories of color gold?

    I got the watch aluminum gold. The soundtrack has metal fittings of color gold. Are there strips of spare with accessories of color gold?

    Hello

    Bands with colored pins but are not currently available for sale separately.

    The current lineup of the band is available here:

    http://www.Apple.com/us/shop/goto/watch/bands

    If you want that Apple to consider making bands with colors pins gold available for purchase separately, you can submit your comments here:

    https://www.Apple.com/feedback/watch.html

  • HD replaced with 3 TB using the recovery disk only has 801G

    My 1.5 TB HD crashed and I replaced with a WD 3 to. After having rebuilt using recovery disc only sees 733 G in C: BIOS shows only 801 G.   I've updated the driver for Intel Rapid Store and is now at 12.9.x.x.  For Intel, Manager shows that 3 TB.

    After updating the Intel driver, I see two more unallocted through the management of the 1300 computer and 746 GB partition.  The 1300GB allows new flight must be created but not the 746 GB.

    I would like to have a combined all the a partition C drive.

    The system is Window 7 64, SP1 model HPE-450 t

    Thank you

    Hello

    Your first message stated that Intel IRST shows the drive as 3 TB. Thus, simply remove all partitions and format the drive as GPT.  Open the windows to RUN it as an administrator and enter the following commands:

    DiskPart

    list disk

    Select disk x---> x equals 3 to target hard drive

    clean

    output

    Now go into disk management and initialize and format the hard drive as GPT and assign a drive letter.

  • Replaced with new phone

    I bought a new phone Costco with damage and they sent me to the apple store to fix this when I went to the apple store they checked and replaced with other phone, but am unsure whether it is new or not. Ho can I know if it was all new phone.

    The prostheses are usually given to nine phones that are as good as new as all components are checked and replaced if necessary.

  • HP Envy 5530: HP Envy 5530 told to replace the color cartridge, even after replacing with a new one.

    HP Envy 5530 said to replace the color cartridge, even after replacing with a new one.  Printer is 1 year old and I replaced the cartridges several times over the past year.  I am enrolled in the program of HP ink.  I can run the printer mode single cartridge using a black ink only and it works with my pc XP, Ipad, Chrome pc and mobile phone.  My pc win 8.1 will not print anything other than a test page.  Printer on the pc file lists always attention required when you try to print from the pc win 8.1.  I believe that the problem may be related to surface of cartridge for printing inside the HP envy heads 5530.  This part is available for purchase, and if so, where?

    I found a work around.  On the pc win 8.1, it seems that the print request must see a reset of the HP envy 5530 to print mode single cartridge.  I just start the pc and then reset the printer by lifting the hatch for the print heads.  That's all.  Once this is done, the 'attention required' message goes to the loan and it is able to print.  It will open a window, which suggests you add the color cartridge, but it will disappear when printing.  Simply open the door once and you can print until you turn off the pc.

  • When I insert an image in the body of my email, it is replaced with an attachment when the recipient gets (also using OE).

    I use outlook express 6 on windows xp pro.

    When I Insert an image in the body of my email, it is replaced with an attachment when the recipient gets (also using OE).
    I did use the option of fixing , I used to Insert.  The reverse also occurs.  When someone using OE sends me an email with
    a peak inside the body of the email, it appears in the box and not in the body of the email. This happens only when they concern the
    my program.  Others using OE does this experience between them.

    My mail sending format is HTML and in its settings, I checked "send pictures with messages. In addition, in the tools of internet explorer, advanced, multimedia.
    I 'send photos' checked also, in the email window, under 'format', ' Rich Text (HTML) "checked.

    I have recently reinstalled cleanly win xp to address a system idle in general.  All updates are in place and tested it with antivirus and anti-malware programs.

    That is what it is?

    [Transferred from Internet Explorer]

    Original title: outlook express

    Tools | Options | Read. Read all messages in plain text it is checked? This it will make become an attachment.

  • Replace with HP spare parts

    I have intend to make some changes on my Pavilion additional e-070sl, like adding RAM and an ssd. But I see one, replace with HP spare "sticker on the stick RAMAXEL (Elpida), also on the hard drive. Knowing that the Bios is locked (only Probook series have a unlocked bios) does that mean I can do only with Hp parts recommended replacements?

    Also can I buy ram with a latency another, other than the 11 seen on the existing ram, like 9? That gave me the guarantee that the 16 GB will work fine (scan Crucial shows me that). I see that I need DDR3L, crucial doesn't have the letter "L", but he did say 1.35 V.

    Any thoughts? Thanks in advance.

    The 'white list' never applied to anything another wireless card then and may now be a thing of the past for recent models of production. In any case you have nothing to fear with regard to memory. You can use anything compatible.1.35 Volt low voltage if it has the 'L' or not. You are very sure buy from crucial. If you buy page for your model, crucial will ensure that it is compatible. I worry not about the latency, just get that recommend crucial. Here is the Manual:

    Manual

    See page 53 and note the instructions that you need to update the BIOS before adding memory.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Windows Update error "windows update location must be replaced with the default windows location."

    Original title: Failed to automatically / thru fixit updated windows installation (another) indicates both failed 1 of 5. It says windows update location must be replaced with the default windows location

    XP86 running. Recently had installed the additional memory. Microsoft Update icon never goes away - seems like if 1 of 5 updates usually install on a group. Keep trying to install updates (even those) again and again. Sometimes we will not install and then moved the next time, he's trying to install the same updates, another a group. Worked through say fixit and details window update location must be changed to windows default = - but did not say how.

     

    Hello

    Have you tried Microsoft Fix - it?

    See the following article:

     

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756/

     

    You cannot install some programs or updates

  • wiring replaced with SSD HD & put Dell Windows XP Home SP2 on again but does not refresh

    I removed my old drive hard-working mill & replaced with a SSD OCZ, 90 GB and put on Dell Windows XP Home SP2.  When I try to update windows, I have error 0x8024400A or # 0 x 80240036.  All the appropriate Dell drivers have been resettled.  Microsoft Fixit won't work because there is no SP3 on the computer.  Thanks in advance for any help.

    Click HERE. Download the batch file. Save the file to your desktop. Double-click on the file. This file stores some Windows dll files related to Windows Update. You should receive several confirmation that files are saved. Close the view and try to update Windows again.

    If still no joy, click HERE. Download sp3. Save the file to your desktop. Double-click the file to run it. Follow the prompts to install sp3. Try to update again once installation is complete.

  • I am running Windows 7, if I remove Norton 360, what I would replace with?

    I am running Windows 7, if I remove Norton 360, what I would replace with?

    See you soon.

    Split of: http://answers.microsoft.com/en-us/windows/forum/windows_vista-networking/browser-cannot-connect-to-internet/8e42fe72-92fb-4642-913b-8aa978b3b0ef

    You can replace it with another antivirus program. Here are three of those who are free.

Maybe you are looking for