Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Smart context dependant tags
Hi,
Couldn’t we have more smart context dependant stuff like <txp:metadescription /> in the future for our sites content?
It could be nice to also display the context type (section, category, article, etc…) and its title (section_title, category_title, article_title, etc…) without all the conditional tags usually needed, no? It could be easier to make a kind of generic header form with that. Does this idea make sense for anybody else ?
In fact I was thinking that <txp:title /> should be a context dependant tag and <txp:article_title /> (like <txp:article_image />) could replace it, but it becomes complicated… Maybe something like <txp:context_title /> could work?
Last edited by NicolasGraph (2016-02-06 17:22:17)
Offline
Re: Smart context dependant tags
NicolasGraph wrote #297774:
It could be nice to also display the context type (section, category, article, etc…) and its title (section_title, category_title, article_title, etc…) without all the conditional tags usually needed, no? It could be easier to make a kind of generic header form with that. Does this idea make sense for anybody else ?
<txp:page_title /> could be a really nice generic title tag if we could alterate its display by removing the site_name prefix with an attribute.
Last edited by NicolasGraph (2016-02-29 14:44:06)
Offline