Date of the last item published or updated

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat May 17, 2014 8:16 pm
Reply with quote
Report this post
Hello,

I'm wondering why this amazing template has not a module to show the date of the last item created, updated and published. Something like the News 2 template, i.e. updated 5:04 PM CET, Mar 5, 2014.

Is there a module available or whatver ?

Best,
Pablo.
User avatar
Junior Boarder

GK User
Sun May 18, 2014 11:05 am
Reply with quote
Report this post
If you have access to both templates, you could copy:
templates/gk_news2/layouts/blocks/updates.php
from News2 and place it in same directory in John template, then load it in:
templates/gk_john_s/layouts/default.php
default template file with use of:
Code: Select all
<?php $this->layout->loadBlock('updates'); ?>

You would probably add tome additional stylings through custom css.
User avatar
Moderator

GK User
Sun May 18, 2014 4:07 pm
Reply with quote
Report this post
heh, thanks! Very good and easy tip!

It's working :)
User avatar
Junior Boarder

GK User
Mon May 19, 2014 5:03 pm
Reply with quote
Report this post
Could you share a link with the final result?
User avatar
Moderator

GK User
Tue May 20, 2014 9:21 am
Reply with quote
Report this post
Hello Cyberek,

the site is under development and it's closed at the moment (we are now making some performance metrics). If you would like 'take a look' let me know and I could create a temporal admin user for you.

Best,
Pablo.

PS : The module was easy to add and easy to customize :)
User avatar
Junior Boarder

GK User
Tue May 20, 2014 9:38 am
Reply with quote
Report this post
Thanks for the info - I was just curious to see how it looks finally - but information that is easy might be useful for future users who would like to include it in their template.
User avatar
Moderator


cron