Page 1 of 1

Showing category date in categories view?

Posted: 11 May 2015, 01:24
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 ?

Re: Showing category date in categories view?

Posted: 14 May 2015, 00:48
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

Re: Showing category date in categories view?

Posted: 14 May 2015, 07:34
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 ?

Re: Showing category date in categories view?

Posted: 15 May 2015, 19:36
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 ?

Re: Showing category date in categories view?

Posted: 17 May 2015, 14:27
by Jan
Hi, added to feature request list.

Jan

Re: Showing category date in categories view?

Posted: 17 May 2015, 19:01
by rbuelund
Super - thanks!

Re: Showing category date in categories view?

Posted: 17 Jun 2015, 16:51
by Jan
Hi, added to 4.2.0

Jan

Re: Showing category date in categories view?

Posted: 17 Jun 2015, 18:39
by rbuelund
Wou - just perfect ! :-)