.weblog engine
FAQ :: Search ::  Memberlist ::  Register :: Profile ::  Usergroups ::  Log in
Log in to check your private messages ::  Download Pivot :: Support Pivot | Info
Is there a feature you would like to see added to Pivot? Post a suggestion to the Wish List forum!
how to get array of categories of a particular weblog

 
Post new topic   Reply to topic   printer-friendly view    Pivot Support Forum Index -> Extension Discussion & Development
View previous topic :: View next topic  
Author Message
lorfer
Respected Pivot Enthusiast
Respected Pivot Enthusiast


Joined: 18 Mar 2005
Posts: 183
Location: Italy

PostPosted: Wed Jul 04, 2007 4:20 pm    Post subject: how to get array of categories of a particular weblog Reply with quote

hello,
I use
Code:
$all_categories = cfg_getarray('cats');

to get all the categories I've created, but how do I get only the categories of a particular weblog or subweblog?

Thanks for the help!

_________________
Lorenzo Ferrara

-> http://lorenzoferrara.net/
-> http://informaticaferrara.com/
-> http://sanlorenzomaggiore.net/
-> email <at> lorenzoferrara (dot) net
Back to top
View user's profile Send private message
hansfn
Pivot Team
<b>Pivot Team</b><!-- Developer -->


Joined: 15 May 2004
Posts: 5267
Location: Molde, Norway

PostPosted: Wed Jul 04, 2007 5:59 pm    Post subject: Re: how to get array of categories of a particular weblog Reply with quote

$Weblogs['weblogid']['categories'] or better use the function find_cats_in_weblog

PS! We still do have some documentation - http://pivotlog.net/dev/docs/pivot/_pvlib.php.html#functionfind_cats_in_weblog Yes, this one was heard to find since I had used "cats" instead of "categories" in the description of the function.

_________________
My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
lorfer
Respected Pivot Enthusiast
Respected Pivot Enthusiast


Joined: 18 Mar 2005
Posts: 183
Location: Italy

PostPosted: Wed Jul 04, 2007 7:55 pm    Post subject: Re: how to get array of categories of a particular weblog Reply with quote

Perfetto!
the find_cats_in_weblog function works great!

Thank you for the help!

_________________
Lorenzo Ferrara

-> http://lorenzoferrara.net/
-> http://informaticaferrara.com/
-> http://sanlorenzomaggiore.net/
-> email <at> lorenzoferrara (dot) net
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    Pivot Support Forum Index -> Extension Discussion & Development All times are GMT - 4 Hours
Page 1 of 1
|
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Your generosity is appreciated!
Joanna was the last to make a donation
:: go here for sponsorship information ::
Special thanks to our platinum sponsors: Joanna, Derk de Zee.  
DreamHost

powered by phpBB | RSS Feed