Hello,
I am trying to create a list of links that are seperated by the pipe |
If I edit the template so that I have a pipe after each link, my links look like:
item 1 | item 2 | item 3 |
I want to get rid of the last pipe, but I don’t see any easy way of doing this.
Any help?
-
MODX Staff
- 12,272 Posts
Use a last class and hide the pipe via CSS, or use a custom last template chunk.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
how would I do a custom last template chunk? I did not see this in the docs.
I use css left or right borders instead of text pipes.
Put border 0 for the last or first item