Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-09 08:49:39

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Category Order

I’ve tried to find a simmilar post to answer my question, but couldn’t find anything.

Ive put together a Navigation with rss_article plugin, and it shows me the Categories with the number of articles associated to it. now appart from the ascending and descending order is there any way I would be able to order them to my desire?

Maybee there is another plugin which achieves the same by producing a nice unorder list from my categories. (Tried some other, but not may output clean html)

Thanks for any help, really apreciate!

Regards Marcel

Offline

#2 2008-06-09 08:57:21

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

Re: Category Order

I normally hand code those. To ensure possible changing of url I use something like

<ul>
<li><a href="<txp:site_url />category/category_name">category name</a></li>
<li><a href="<txp:site_url />category/category_name_2">category name 2</a></li>
<li>etc</li>
</ul>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-06-09 09:25:28

mauricenaef
Member
Registered: 2008-01-31
Posts: 23

Re: Category Order

Is there any way to display the number of Articles associated in each category?
Haven’t thought about that idea yet..

BR Marcel

Offline

#4 2008-06-09 10:42:12

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Category Order

I’m not quite sure what you use, rss_article? rss_unlimited categories should have a counter as far as I know.

The following should be capable of also reading in any table other than “textpattern”: <txp:php>echo safe_count("textpattern", "Category1 = 'foobar' or Category2 = 'foobar'");</txp:php>, change everything to your needs.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2008-06-09 12:38:47

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

Re: Category Order

mauricenaef wrote:

Is there any way to display the number of Articles associated in each category?

mdn_count does it for you:)


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