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
Duvidas com Sub-Categorias no Phoca
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Duvidas com Sub-Categorias no Phoca
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 8
- Joined: 15 Dec 2010, 19:56
Re: Duvidas com Sub-Categorias no Phoca
Yeah! I had thought about it, I need to organize sql, so I need to know is that the variable sub-categoryJan 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
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Duvidas com Sub-Categorias no Phoca
Hi, you can try to do modifications here:
components\com_phocagallery\models\categories.php
Jan
components\com_phocagallery\models\categories.php
Jan
If you find Phoca extensions useful, please support the project