Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-06-30 01:52:01
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Attribute for categories
Once again apologies if this subject has been broached (or if there is a plugin somewhere) before but I didn’t see it anywhere.
Like many I have a menu on my site created using <code><txp:category_list /></code>.
I realize this my following suggestion would require an additional field to be added to the admin interface as well as an attribute for the tag, but . . . how about adding a description for each category?
It needn’t be too long (48 characters should be plenty). And a “desc” attribute to the tag (1 display description as default, 0 supress discription).
This would permit the category_list when rendered into html to produce accessibility compliant links.
As it stands the tag produces <code><a href=“http://www.domain.tld/category/category_name/”>Category_Name</a></code>
The addition of the “desc” field would produce accessiblity friendly links like <code><a href=“http://www.domain.tld/category/category_name/” title=“category description here”>Category_Name</a></code>
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline