We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

{if no_results} with exp:channel:prev_entry & next_entry?

Development and Programming

RabRab's avatar
RabRab
5 posts
9 years ago
RabRab's avatar RabRab

Hi all,

I am on 2.9.2. I am having difficulties with {if no_results}…{/if} within an {exp:channel:prev_entry} tag. It’s being completely ignored when there is not a previous entry for some reason (same with next_entry).

Do these tags not support no_results? Is there a way around this ?

Thanks!

       
Richard Whitmer's avatar
Richard Whitmer
96 posts
9 years ago
Richard Whitmer's avatar Richard Whitmer

You could probably get around it with something like this:

{if "{exp:channel:next_entry}{entry_id}{/exp:channel:next_entry}"==""}

[No results block]

{if:else}
 
[Results block]

{/if}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.