Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2018-03-16 14:12:31

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Nested if tags to employ a custom field as selector attribute

Bloke wrote #310002:

Over the ages I have considered adding a way to get the raw value from the article image field, but since the <txp:custom_field> hack works there’s been no pressing need.

Maybe not the need for a new tag, but certainly documentation of the useful hack. Did I miss it somewhere?

I will comment my code to remain aware, but I’ll check… Both the image_info and custom_field tag docs could use a similar highlight about the hack. Up at top of the pages where it’s more likely to be seen.

Offline

#26 2018-03-16 14:16:27

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

Re: Nested if tags to employ a custom field as selector attribute

Destry wrote #310004:

documentation of the useful hack. Did I miss it somewhere?

Nope. Undocumented feature (some say, bug: I say feature). We could mention it on the article_image tag page I suppose.


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

Board footer

Powered by FluxBB