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

Next/Previous Entry Linking if no_results

Feature Requests

webmvp's avatar
webmvp
6 posts
8 years ago
webmvp's avatar webmvp

Hello!

In this file \system\ee\EllisLab\Addons\channel\mod.channel.php

i made changes in code like so:

if ($query->num_rows() == 0)
  {
   //return;
   return ee()->TMPL->no_results();
  }

Now i can use {if no_results} inside Next/Previous Entry tag.

This is usefull when previous/next entry links are part of the design and you want them visible, but with no link when there is no previous/next entry, or something similar.

I was wondering is it possible to have this by default, or is there a specific reason why Next/Previous Entry Linking does not have this option by default?

Thanks!

       
webmvp's avatar
webmvp
6 posts
8 years ago
webmvp's avatar webmvp

Lines where i made the change: 4684

also, editing post and preview post on this forum dont seem to work properly 😊

Preview reply works tho 😊


Error

Something has gone wrong and this URL cannot be processed at this time.

       

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.