Is there a way to only render certain code if more than one entry is displayed?
For instance, the particular template I’m working with is set to a limit of 6 entires:
{exp:channel:entries channel="blog" orderby="date" sort="desc" limit="6"}What I’m trying to do is render a divider between entries when there’s more than one, but when linking directly to an entry through that template, not display the divider. Does that make sense?
I’ve been pouring over the if statements and variables and I just can’t quite come up with it.
What I initially tried was:
{if segment_2=="" OR segment_2=="category"}divider code here{/if}My thinking was if segment two wasn’t blank, and it wasn’t a category, then it was a link to a single entry.
But then I realized that this wouldn’t work with pagination because segment_2 was suddenly no longer empty when you went beyond the first page, meaning the divider code wouldn’t display.
Any thoughts? Anything I’m missing?