Hi nikkimarie, if you haven’t already solved this problem I was looking to do something similar- put a “|” in between “next” and “previous” links but leave it out if there is no “next” or “previous”. I got it done with a little jquery:
<div id="pagination_display">
{exp:channel:next_entry channel="news_ch"}
<span><a href="http://{path=news/entry}">{title}</a></span>
{/exp:channel:next_entry}
{exp:channel:prev_entry channel="news_ch"}
<span><a href="http://{path=news/entry}">{title}</a></span>
{/exp:channel:prev_entry}
< script >
// checking to see if there is a previous entry- if so, add the divider after the nextlink
if ($("#previous").length) {
$("#next").append('<span> | </span>');
}
< /script >
</div>
Jquery isn’t my strong suit but as best as I can tell this is looking for “#previous” and if it exists adds
after “#next”, which also works if there’s no “#next” because even though there’s a “#previous” there’s no “#next” and it can’t append to something that’s not there…
Hope that helps, in this example I added a space before the “<” and “>” of the script tags because the forum them otherwise…