Page 1 of 1

Different root categories in menu

Posted: 24 Apr 2010, 18:57
by tompet
I have been looking in the documentation and this forum for a solution but have not found any. So I try to ask here.

As I understand, the root category can only be owned by one user. I have created 2 root categories, "Gallery" owned by administrator and "Wallpapers" owned by webmaster, and so far so good. I have also added some sub-categories with pictures to get it functional.

What I want to do is to add one menu item called "Gallery" and an other called "Wallpapers" to the menu and each root category should show a list of the subcategories in respective root category. I.e. the root category "Gallery" only show the subcategories in "Gallery" and nothing more. But when I try to add a "Category list layout" all the subcategories of both root categories are displayed. The same when I add the menu link "Wallpapers".

I have also tried to use the "Category Layout" but then I only get those big ugly folders and not a picture for each subcategory. When editing the settings in "Category Layout" nothing is happen with the look.

I just want to give visitors to the site the feeling that there is one gallery with pictures and one with wallpapers and they are accessed from 2 different menu links. Can this be done?

It is similar to Joomla where you can choose to show news from a separate article section or category.

Re: Different root categories in menu

Posted: 26 Apr 2010, 18:40
by Jan
Hi, yes for such behaviour you need to create menu links to Category View.

The category view has the same parameters like Categories Views, so if you set that images will be displayed instead of folders, then it should normally works. The only difference is that sufolders are displayed in the same line as images (float boxes) or they can be displayed above the images (categories view in category view)

Jan

Re: Different root categories in menu

Posted: 27 Apr 2010, 02:20
by tompet
Thanks for your help. I have tried back and forward with the settings and I can get the list of subcategories in "Category View". But I also get thumbnails of the subcategories (looking like the images thumbnails) and I don't need the subcategories to show up two times on the same page. Is it possible to turn off the subcategories that are looking like image thumbnails somewhere? And just keep the list? I like the list and want to keep that style.

I have a screenshot but don't know where to add attachment with this post.

Re: Different root categories in menu

Posted: 27 Apr 2010, 16:12
by Jan
Hi, you can hide subcategories only in Categories View. If you want to hide them in Category View, just unpublish them in administration.

Jan

Re: Different root categories in menu

Posted: 27 Apr 2010, 21:14
by tompet
Hi, ok. But then I get the big pictures and I want the list. Seems like something is missing here. I have copied the category view to the html folder in my template /html/com_phocagallery/category. Guess I have to edit that file but much of the code there is php code. I will see if I can do changes in those files.