Thanks for helping,
unfortunately it doesn’t seem to work for me.
When I try:
{exp:channel:entries channel="{segment_2}" paginate="top" require_entry="yes" limit="1" disable="categories|category_fields|member_data|trackbacks"}
{paginate}
{if previous_page}
do this
{/if}
{if next_page}
do that
{/if}
{/paginate}
...
Nothing is displaying at all.
I have to mention again, that this is intended to be used on a single entry page.
What I am trying to achieve is to find out, if it is the first page and apply a different ce_cache tag, so I don’t have to remove all cached entries, when publishing a new post.
The first entry will obviously have no cached “next link”, so every time I publish a new entry I have to delete all cached “prevnext_network” items.
But I would like to be able to delete only the first entry(the only one that has actually changed).
I hope this makes sense.
{if first_page}
{exp:ce_cache:it tags="first_page_prevnext_network" seconds="{cache_time}"}
{/if}
{if not_first_page}
{exp:ce_cache:it tags="not_first_page_prevnext_network" seconds="{cache_time}"}
{/if}
<!--Pagination-->
<div class="pagination clearfix">
{exp:channel:prev_entry channel="{segment_2}"}
<div id="prev_entry">
<a href="/blog/{segment_2}/{url_title}class=prev_link">{exp:eehive_hacksaw chars="25" append = "..."}{title}{/exp:eehive_hacksaw}</a>
</div>
{/exp:channel:prev_entry}
{exp:channel:next_entry channel="{segment_2}"}
<div id="next_entry">
<a href="/blog/{segment_2}/{url_title}class=next_link">{exp:eehive_hacksaw chars="25" append = "..."}{title}{/exp:eehive_hacksaw}</a>
</div>
{/exp:channel:next_entry}
</div>
{/exp:ce_cache:it}
Thanks