Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Table textpattern, custom fields and curiosity
Sorry, I’m not sure to be in the correct forum. I have a point of clarification on the behavior of fields in the tab “write”.
I use sometimes <txp:custom_field />
and <txp:if_custom_field />
combinaison with different fields of write tab.
For example <txp:article_section />
does not exist. So to display the name of the section on an article, I use
<txp:custom_field name="section" />
and works fine
In another case, I had to check if the body of the article has title:
<txp:if_custom_field name="body" value="</h3>" match="all">
article body has title level 3
<txp:else />
No title level 3 in the body of the article
</txp:if_custom_field>
So I wanted to try the same process with the attribute customfieldname="value"
of article_custom
tag. And show only article that have a except :
<txp:article_custom excerpt="_%" />
But it does not work.
Why can we use custom_field
and if_custom_field
with other fields of the textpattern table but not with the attribute customfieldname
of article_custom
tag?
Offline
#2 2012-02-02 20:15:13
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Table textpattern, custom fields and curiosity
sacripant wrote:
show only article that have a except :
Not an answer to your question, but I suppose you know about <txp:article_custom excerpted="y" />
?
Offline