Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Linklist bug?
Another thing to keep in mind when using evaluate in lists with limit is that you can get no output even when there are some valid items. It works like this:
limitnumber of items are retrieved from db;- each is tested by
evaluate; - the items that do not pass the test are eliminated.
So you generally get les than limit items in the resulting list.
Edit: to be sure you get all valid links in your case, you can try sort="description='', id DESC".
Offline
Re: Linklist bug?
etc wrote #331434:
Another thing to keep in mind when using
evaluatein lists withlimitis that you can get no output even when there are some valid items. It works like this:
limitnumber of items are retrieved from db;- each is tested by
evaluate;- the items that do not pass the test are eliminated.
So you generally get les than
limititems in the resulting list.
Hi Oleg, It’s good to know. Thankfully, I am in charge of the list and all links are OK, even with the limit. In fact I use the evaluate tag to help me identify my errors. In this case, it is my posting of links without a description.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Linklist bug?
Hi Yiannis, I just can not reproduce your issue on 4.8.8, whence the request.
Offline
Re: Linklist bug?
Admittedly, I cannot reproduce it on the demo site either. It may be something in my setup which I could not figure out. I did correct the code above by removing the limit from the variable just to be on the safe side. I think you have access to my site, all you need is to access the latest modified article, should you wish to confirm if there is actually a bug.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline