Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: how to calculate custom_fields of articles
Bloke wrote #316121:
I’ve added the example and mentioned use as a single tag. Good catch, thanks Uli.
I think that the way Oleg described it, the counter variable only works when enclosed in an article (or article_custom) loop. Changed the description, slightly.
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: how to calculate custom_fields of articles
Good call, colak, thanks. I made it even more explicit by enclosing the example in a <txp:if_individual_article>
container, and also added the 4.7.0 genealogy section. That needs to be done for all the single conditional tags mentioned in this commit (which isn’t all of them: some of the if_first_* and if_last_* tags have been omitted, for example, though they may have been done in a later commit).
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: how to calculate custom_fields of articles
jakob wrote #316087:
<txp:article_custom section="blog" Type="info" pageby="1" pgonly />...
Goodness, that just helped me out of trouble, Dankeschön!
A hole turned upside down is a dome, when there’s also gravity.
Offline