So, I’ve got a listing page that lists things in a pipe-separated list. However, I can’t figure out a way to not have the last pipe show up.
Here’s how it’s listing now:
2007
Q1 | Q2 | Q3 | Q4 |
2006
Q1 | Q2 | Q3 | Q4 |
Here’s how I want it to list:
2007
Q1 | Q2 | Q3 | Q4
2006
Q1 | Q2 | Q3 | Q4
Notice the lack of the pipe after “Q4”.
Here’s the code:
{exp:weblog:category_archive weblog="lp_docs" show_empty="no" style="linear" show="{embed:cats}" dynamic="off"}
{categories}
<h2>{category_name}</h2>
<p>{exp:weblog:entries weblog="lp_docs" category="{category_id}" style="linear" orderby="entry_date" sort="desc" dynamic="off"}</p>
<p>{date_heading display="yearly"}</p>
<h3>{entry_date format="%Y"}</h3>
<p><br />
{/date_heading}</p>
<p><a href="http://{lpe_file_1}">{title}</a> | <br />
<br />
{date_footer display="yearly"} </p>
<p>{/date_footer}</p>
<p>{/exp:weblog:entries}</p>
<p>{/categories}</p>
<p>{/exp:weblog:category_archive}