Page 1 of 1

(Sub-) Categories Sorting by date independed from parent cat

Posted: 28 Jul 2010, 22:44
by Schneng
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

Re: (Sub-) Categories Sorting by date independed from parent

Posted: 31 Jul 2010, 15:33
by Jan
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 :idea: :(

Jan

Re: (Sub-) Categories Sorting by date independed from parent

Posted: 02 Aug 2010, 12:05
by Schneng
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

Re: (Sub-) Categories Sorting by date independed from parent

Posted: 07 Aug 2010, 10:57
by Jan
Ok