You can do it using pseudo-selectors in CSS -

if you are doing the footer links in an ul -

ul#footer li.before { content: "|" }
ul#footer li.firstChild { content: "" }

you can also use border properties - which are better supported in IE.

Ryan

On Sep 26, 2007, at 12:03 PM, dawnJ2SB wrote:


I am creating a footer link paragraph editor which allows me to dynamically add as many links in the footer as needed. However, between each link is a " | " character. This character should only be visible BETWEEN the
links, not before the first or after the last. I tried using your
ifLastContentNode function, but haven't found the right formula to make it
work. %-|

Do you know how to make it work? Or know of another way?

<cms:ifNotEmpty nodeDataName="footer_url">
    <cms:out nodeDataName="footer_url" var="footer_url"/>
    <cms:ifNotEmpty nodeDataName="footer_name">
       ${footer_url} <cms:out nodeDataName="footer_name"/>
    </cms:ifNotEmpty>
    <cms:ifEmpty nodeDataName="footer_name">
       ${footer_url} <cms:out nodeDataName="footer_url"/>
    </cms:ifEmpty>
  </cms:ifNotEmpty>
&nbsp;|&nbsp;

Thanks!
--
View this message in context: http://www.nabble.com/removing- character-in-last-iteration-output-tf4523941.html#a12906502
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to