Page 1 of 1

Duvidas com Sub-Categorias no Phoca

Posted: 22 Dec 2010, 19:27
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

Re: Duvidas com Sub-Categorias no Phoca

Posted: 23 Dec 2010, 13:34
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

Re: Duvidas com Sub-Categorias no Phoca

Posted: 23 Dec 2010, 14:02
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

Re: Duvidas com Sub-Categorias no Phoca

Posted: 23 Dec 2010, 22:50
by Jan
Hi, you can try to do modifications here:

components\com_phocagallery\models\categories.php

Jan