Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[wiki] TXP core fields and check via if_custom_field name=""
Documentation needs enhancement(s) regarding TXP core fields which can be checked via if_custom_field name="list of TXP core fields"
.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#2 2012-12-13 19:30:33
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,310
Re: [wiki] TXP core fields and check via if_custom_field name=""
Do you mean like this here?
I was close to adding this possibility to the wiki but remember I found statements of Stef and Jukka saying that it mustn’t of necessity remain like it is now.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [wiki] TXP core fields and check via if_custom_field name=""
It’s an undocumented feature primarily because it’s a side-effect of not enforcing a strict check against custom_N
. But as it stands, it’s very very very very very very handy to be able to test and access the content of other article fields so I would be loathe to remove the ‘feature’ unless we have something to officially replace it.
Whether the side-effect is documented on the wiki is probably a decision we should take sometime. Potentially any field in $thisarticle
is accessible, but documenting the exhaustive list may well confuse people more than just not mentioning it at all. Jury’s out (still).
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: [wiki] TXP core fields and check via if_custom_field name=""
Thanks Uli & Stef
IMHO there must be a formal wiki way to document such undocumented features. Give such ‘specialities’ an extra link or an extra paragraph and add some hard wired warning(s) on top like Supported in TXP until version x.y.z. May be deprecated in the future because of stricter internal checks.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: [wiki] TXP core fields and check via if_custom_field name=""
Off the subject but still on custom_fields. Shouldn’t there be an example of the pattern
attribute in the txb?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline