Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-10-22 16:23:21

surfwax95
Member
Registered: 2008-04-04
Posts: 38
Website

Output assigned categories as classes (rss_unlimited_categories)

I developed a pretty nifty sorting menu that depends on the sortable items (a <ul> of articles) having their categories assigned as classes. I’ve tried outputting the standard rss_uc_filedunder with none of the options specified and tried overriding the options to blank, but I’m getting nowhere. The categories always have an anchor around them.

Any ideas?

Last edited by surfwax95 (2010-10-22 16:23:42)


Caps lock is cruise control for cool. —Unknown

Offline

#2 2010-10-22 21:10:33

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Output assigned categories as classes (rss_unlimited_categories)

I don’t understand the question. Is this about the plugin? In that case you’d better post in the plugin thread. If not, can you post your code and tell us what it is that you want it to do that it doesn’t do?

Offline

#3 2010-10-22 22:43:40

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Output assigned categories as classes (rss_unlimited_categories)

You can output just the title of the standard categories using this:

<txp:category1 title="1" link="0" /> <txp:category2 title="1" link="0" />

Last edited by MattD (2010-10-22 22:44:18)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2010-10-27 02:52:56

surfwax95
Member
Registered: 2008-04-04
Posts: 38
Website

Re: Output assigned categories as classes (rss_unlimited_categories)

Well, I guess this is more oriented towards a plugin type question, but MattD is on the right track.

I just need to output the rss_ul_cats as plain text, sans any formatting or HTML. This way I can use the categories assigned to an article as class names for an HTML element.


Caps lock is cruise control for cool. —Unknown

Offline

#5 2010-10-27 16:40:36

vurt
Member
Registered: 2010-10-22
Posts: 50

Re: Output assigned categories as classes (rss_unlimited_categories)

Would something like etz_striptags work? It was developed some time ago so not sure what its compatibility is.

Offline

Board footer

Powered by FluxBB