Showing category date in categories view?
-
rbuelund
- Phoca Professional

- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Showing category date in categories view?
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 ?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Showing category date in categories view?
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
Jan
If you find Phoca extensions useful, please support the project
-
rbuelund
- Phoca Professional

- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Showing category date in categories view?
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

- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Showing category date in categories view?
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 ?
$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 ?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Showing category date in categories view?
Hi, added to feature request list.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
rbuelund
- Phoca Professional

- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Showing category date in categories view?
Super - thanks!
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Showing category date in categories view?
Hi, added to 4.2.0
Jan
Jan
If you find Phoca extensions useful, please support the project
-
rbuelund
- Phoca Professional

- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Showing category date in categories view?
Wou - just perfect ! 