Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Parsing <txp:variable /> as tag attribute fails
hello forum,
i would like to use a variable as tag attribute to <txp:article_custom />
.
i’ve defined a valid date string as value to the variable and if i output it somewhere in my template <txp:variable name="date" />
it returns the correct string: 2012-03-27.
however, once i try to use it as an attribute to article_custom it fails:
<txp:article_custom section="exhibitions" time="future" month='<txp:variable name="date" />' />
does not return nothing. while
<txp:article_custom section="exhibitions" time="future" month=2012-03-27" />
as expected outputs all articles in section exhibitions starting march 27. what am i doing wrong?
tanks for your help!
Last edited by totoff (2012-02-27 15:02:41)
Offline
#2 2012-02-27 15:39:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Parsing <txp:variable /> as tag attribute fails
totoff wrote:
if i output it somewhere in my template
Where the tag is placed in the template can influence its output. Can you post a tag trace of the page in question?
Offline
Re: Parsing <txp:variable /> as tag attribute fails
thank you els,
i have solved this. it was some weird interference with another tag. the syntax was ok.
best, christoph
Offline