Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Offline
Re: count the number of articles
I’m returning to this as I was experimenting with the evaluate tag which did not work as expected and returned nothing when using the snippet below.
<txp:evaluate query='<txp:article_custom section="projects,about,blog,texts,publications" pageby="1" status="live" pgonly escape="number" /> + <txp:article_custom section="projects,about,blog,texts,publications" pageby="1" status="sticky" pgonly escape="number" />' />
I know that the above can be achieved in a simpler way and it is not a real life experiment.
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: count the number of articles
Try removing escape="number"
from your tags. According to the post above that adds a comma, which is probably throwing off the addition.
TXP Builders – finely-crafted code, design and txp
Offline
Re: count the number of articles
jakob wrote #340084:
Try removing
escape="number"
from your tags. According to the post above that adds a comma, which is probably throwing off the addition.
! ^^ that was it!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline