List Info

Thread: getParentCategoryTree()




getParentCategoryTree()
user name
2006-05-19 21:25:12
Sorry, I pushed send on that last email a little too quickly
... i  
should have dug a little deeper before posting here.

I now realize that getParentCategoryTree() is in fact
retreiving the  
data i expected. It looks like it is storing the tree in a  
multidimensional array. Each parent category is stored in a
key and  
its value is an array of its own parent categories.

So my question is ...
Is there a built in mediawiki function that can take the
results from  
getParentCategoryTree() and produce a list or do i need to
do this  
manually?

And ... is getParentCategoryTree() the most efficient way
(maybe it's  
the only way?) to retrieve the category tree for an article?


thanks again
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

getParentCategoryTree()
user name
2006-05-23 06:38:47
akid
wrote:
> So my question is ...
> Is there a built in mediawiki function that can take
the results from  
> getParentCategoryTree() and produce a list or do i need
to do this  
> manually?

Have a look at the method Skin::drawCategoryBrowser() in
Skin.php 

> And ... is getParentCategoryTree() the most efficient
way (maybe it's  
> the only way?) to retrieve the category tree for an
article?

There is probably a better way, but the way I used is
probably the 
easiest :p

-- 
Ashar Voultoiz - WP++++
http://en.wi
kipedia.org/wiki/User:Hashar
http:/
/www.livejournal.com/community/wikitech/
IM: hasharjabber.org  ICQ: 15325080

_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

getParentCategoryTree()
user name
2006-08-30 20:27:07
Hello all,

Category pages are set up to tell you how many articles are
in the 
category, and to display a gallery of the images.  I'd like
it to say 
how many images there are - can anyone give a clue as to
what code needs 
changing/adding?

Thanks very much,
Roger

www.world-traveller.org
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Display number of images in category
user name
2006-08-30 20:27:23
Hello all,

Category pages are set up to tell you how many articles are
in the 
category, and to display a gallery of the images.  I'd like
it to say 
how many images there are - can anyone give a clue as to
what code needs 
changing/adding?

Thanks very much,
Roger

www.world-traveller.org
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )