Has anyone come up with a solution in their Previous and Next entry links to create a separator between the two when the both exist, but remove the separator when there’s only one?
That is, when both are available, show the pipe separator:
<< Previous | Next >>
When only one, don’t display the pipe:
Next >>
Yes, it’s a minor detail - but one I’d love to overcome. There has to be a prettier solution than this:
{exp:channel:next_entry}
<a href="http://{path=channel}">« Previous</a>
{/exp:channel:next_entry}
{exp:channel:prev_entry}
| <a href="http://{path=channel}">Next »</a>
{/exp:channel:prev_entry}Doing this above results in this on the first entry:
| Next >>