Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
<txp:tag attr="<txp:tag />" /> ?
I think my template code can speak for itself here:
<txp:feed_link flavor="atom" format="link" title="All content from <txp:site_name />" />
The above does not work. But how am I actually supposed to reference txp:tags
for attribute values in other txp:tags
?
Last edited by Aeyoun (2013-07-27 14:38:13)
Offline
#2 2013-07-27 13:30:03
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: <txp:tag attr="<txp:tag />" /> ?
You need single quotes for all attribute values TXP is expected to parse, like that:
<txp:feed_link flavor="atom" format="link" title='All content from <txp:page_title />' />
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: <txp:tag attr="<txp:tag />" /> ?
Thank you, uli. That is the direct opposite of most languages then.
Just out of curiosity, where is this mentioned in the documentation?
Offline
#4 2013-07-27 15:28:52
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: <txp:tag attr="<txp:tag />" /> ?
You’re welcome.
Aeyoun wrote:
where is this mentioned in the documentation?
In the FAQs and, should you be curious to read some more on this, more detailled in the dev weblog (in absence of linkable IDs: see “Attribute value parsing”).
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2013-07-27 19:41:18
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: <txp:tag attr="<txp:tag />" /> ?
Took your question as a hint and updated the appropriate wiki article about tag nesting.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: <txp:tag attr="<txp:tag />" /> ?
uli wrote:
Took your question as a hint and updated the appropriate wiki article about tag nesting.
There are articles in the wiki about this, such as Parsing Tag Attributes and there is whole section dedicated to using tags. Links to these instructions can be found directly on the Tag Reference page too, which is linked on the sidebar and on the wiki home page.
Aeyoun wrote:
Just out of curiosity, where is this mentioned in the documentation?
See Parsing Tag Attributes. More tag related articles can be found right on the Tag Reference page from the in page navigation.
Last edited by Gocom (2013-07-27 20:21:15)
Offline
Offline
Pages: 1