Duvidas com Sub-Categorias no Phoca

General Forum
tiagotas
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Dec 2010, 19:56

Duvidas com Sub-Categorias no Phoca

Post by tiagotas »

Guys, there is the possibility of a subcategory appear in order of creation?

Example:
I created two categories: pictures and videos.
Within the category pictures, I put the sub-categories such as year-end party.
And I wish that this sub-categories are displayed according to the date it was created.
1 st sub-category to show - New Year's Eve Party
2 nd sub-category to show - Festival of Children
3rd sub-category to show - Valentine's Day
and so on ...

Anyone know how I do it?
I tried to sort by date did not work, I think it only works for classes and I need it to sub-categories

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Duvidas com Sub-Categorias no Phoca

Post by Jan »

Hi, you can sort categories by date, but subcategories are displayed in tree, so they are not displayed then the same way as category, so the sql needs to be customized then (but no experiences there :-( )

Jan
If you find Phoca extensions useful, please support the project
tiagotas
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 15 Dec 2010, 19:56

Re: Duvidas com Sub-Categorias no Phoca

Post by tiagotas »

Jan wrote:Hi, you can sort categories by date, but subcategories are displayed in tree, so they are not displayed then the same way as category, so the sql needs to be customized then (but no experiences there :-( )

Jan
Yeah! I had thought about it, I need to organize sql, so I need to know is that the variable sub-category
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Duvidas com Sub-Categorias no Phoca

Post by Jan »

Hi, you can try to do modifications here:

components\com_phocagallery\models\categories.php

Jan
If you find Phoca extensions useful, please support the project
Post Reply