Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2012-09-28 16:11:02

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Ad extra fields to category and section to store meta information

-1 for core as its limiting, messy. But +1 for a plugin. This would fit well as a plugin. If anything, Textpattern could potentially offer custom fields for sections, but set meta fields, meh.

Offline

#3 2012-09-30 08:25:55

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#4 2012-09-30 10:58:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB