Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-02-06 15:39:03

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#2 2016-02-29 13:33:38

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

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)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

Board footer

Powered by FluxBB