Showing category date in categories view?

Phoca Gallery - image gallery extension
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Showing category date in categories view?

Post by rbuelund »

I would like to show the month/year in the categories view, so that every time that all categories for one month has been listed, then the mondth/year is displayed and the categories for the next month are shown. Is that possible? Maybe with an override ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Showing category date in categories view?

Post by Jan »

Hi, the date is stored in database, so it can be modified in code - yes, you can use override but I think, you need to modify the model too.

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Showing category date in categories view?

Post by rbuelund »

Can I override the model ? I tried to look at the object in the view/template file - it does not seem to contain the date, so yes somewhere in the model it has to be added - can you point me in the right direction ?
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Showing category date in categories view?

Post by rbuelund »

Would it be possible that you could add this line:

$tree[$iCT]->date = $key->date;

In /com_phocagallery/models/categories.php at line 210 ?

That way the date gets into the view - I do not see any problem in making this permanent ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Showing category date in categories view?

Post by Jan »

Hi, added to feature request list.

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Showing category date in categories view?

Post by rbuelund »

Super - thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Showing category date in categories view?

Post by Jan »

Hi, added to 4.2.0

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Showing category date in categories view?

Post by rbuelund »

Wou - just perfect ! :-)
Post Reply