Proposal: getcategorylist

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

Proposal: getcategorylist

Postby Marza » Fri Jan 08, 2010 5:40 am

As far as I can see, there is no way at the moment to make a list that consist of only the latest entries of all categories. I think it could be done, if 'getcategorylist' existed. Within a 'foreach' tag you could place a subweblog tag, with 'amount' set to one (or anything else you'd prefer).
It would be nice, if something like 'exclude=current' could be used as well, although that can be achieved in another way as well.
It would enable the creation of a list 'Recently in other categories', a nice addition I think.

Or am I overseeing something and can this already be done?
Marza
 
Posts: 85
Joined: Sat Dec 12, 2009 8:49 pm

Re: Proposal: getcategorylist

Postby hansfn » Fri Jan 08, 2010 8:10 am

From the subweblog documentation:
You can also use category='*' to select all categories.

Isn't that what you want? (The subweblog tag doesn't support exclude (yet).)
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Proposal: getcategorylist

Postby Marza » Fri Jan 08, 2010 4:09 pm

To select all categories yes, but I want to exclude several on different pages. But even if I would want to use all categories, how would I restrict the number of entries shown for each category? amount= restricts the total number of entries, not those per category, right?
Marza
 
Posts: 85
Joined: Sat Dec 12, 2009 8:49 pm

Re: Proposal: getcategorylist

Postby hansfn » Fri Jan 08, 2010 5:07 pm

OK, I got your point - I didn't understand that you wanted a fixed amount per category. We will look at it.
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway


Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 1 guest