Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-09-28 15:53:58
- milosevic
- Member
- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Ad extra fields to category and section to store meta information
In my opinion one of the lacks of TXP its that we can’t attach easily meta information to categories and sections.
My suggestion is to ad a couple or three new fields to categories and sections in order to let the user describe better the content of the category or section and/or make non parent-child relations between them. This will be really usefull for develop reach content and for SEO pourpose.
For instante
category or section:
name: “textpattern”
title: “Textpattern”
shortdesc: “Stuff related with the most exciting CMS”
longdesc: “Articles, links and comments relateds with Textpattern, a free and open source content management system for people who loves built websites”
keywords “textpattern,links,articles,tutorials,plugins,open source”.
Note that the “keywords” field could be used to store other cats o sectios names or id to make relations between them.
With this info we could retrieve info like this (this is not a formal propossal of tags, just an example):
<meta name="description" content="<txp:category longdesc="1"/>"/>
...
<h1><txp:category title="1"/></h1>
<h2><txp:category sortdesc="1"/></h2>
—-
Actually all this stuff can be done with textpattern tags but requires a lot of work and is not user friendly. When I need this kind of information y make a special section called “meta” and use its articles to store this kind of info about categories, but this is not really smart and zero user friendly for final users.
Last edited by milosevic (2012-09-28 15:54:29)
<txp:rocks/>
Offline
Offline
Re: Ad extra fields to category and section to store meta information
This is plugin territory. There’s a set of explicit callbacks exactly for that purpose.
Offline
Re: Ad extra fields to category and section to store meta information
If there is a plugin for this, further to
<meta name="description" content="<txp:category longdesc="1"/>"/>
...
<h1><txp:category title="1"/></h1>
<h2><txp:category sortdesc="1"/></h2>
a similar one for sections would be nice:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline