Hi Jan, Hi Phoca-Team,
thank you very much for this great component and your great support.
I've got one question concerning the order of categories:
In the galery i have a couple of categories plus a couple of sub-categories in each category. now the aim for me is, to show all categories in the Phoca Gallery Category List Layout, sorted by the date of the sub-categories but independend from the parent categories. (Category Ordering: Date Ascending)
currently the Category List Layout sorts the categories first of all by the parent categories and inbetween the parent categories it sorts the subcategories by date.
I hope you got the problem?!
Just in case, here's one example:
Current Order
(- parent categorie 1)
-- sub category 1.1. (date: 1.1.2010)
-- sub category 1.2. (date: 1.1.2005)
(- parent categorie 2)
-- sub category 2.2. (date: 1.1.2007)
-- sub category 2.1. (date: 1.1.2006)
the order i want to have
-- sub category 1.1. (date: 1.1.2010)
-- sub category 2.2. (date: 1.1.2007)
-- sub category 2.1. (date: 1.1.2006)
-- sub category 1.2. (date: 1.1.2005)
Thank you all very much! Schneng
(Sub-) Categories Sorting by date independed from parent cat
-
Schneng
- Phoca Member

- Posts: 16
- Joined: 25 Aug 2008, 18:09
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: (Sub-) Categories Sorting by date independed from parent
Hi, I think, this needs to be customized. As the categories displying is using recursive function to make a tree of categories and subcategories, different ordering for categories and subcategories can be very difficult to make
Maybe this needs to be done by sql queries (different) + then php sorting, etc. but this can take a lot of resources then
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Schneng
- Phoca Member

- Posts: 16
- Joined: 25 Aug 2008, 18:09
Re: (Sub-) Categories Sorting by date independed from parent
Alright, i see. If its that hard to customize the order of the categories, i am fine with the current way of ordering.
Thank you very much! Schneng
Thank you very much! Schneng
- Jan
- Phoca Hero

- Posts: 49299
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: (Sub-) Categories Sorting by date independed from parent
Ok
If you find Phoca extensions useful, please support the project