Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2019-01-14 20:17:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,093
Website GitHub Mastodon Twitter

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

#14 2019-01-14 22:55:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,468
Website GitHub

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

#15 2022-02-04 17:49:36

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 687
Website Mastodon

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

Board footer

Powered by FluxBB