site updates add on needed
Permalink
Hi Folks,
I am currently building a scout website, and I would like to list pages that have been updated automatically. Does anyone know a addon that can do this, as it is for the Scouts a free on would be very welcome.
Thanks
Niall
I am currently building a scout website, and I would like to list pages that have been updated automatically. Does anyone know a addon that can do this, as it is for the Scouts a free on would be very welcome.
Thanks
Niall
Thanks for that, but I was looking for somthing that would list it on the website as updates, as they would like vistors to know what is new so they can check out the updates.
You could easily make the built-in Page List block do this for you.
On your server, create a new directory named "page_list" inside your site's "blocks" directory.
Then copy these two files:
...into that new directory you just made, so you wind up with these two files:
Now edit the new copy of "controller.php", and find this line of code (should be around line #70 or so):
...and replace it with this code:
Now when you choose to sort the page list by "most recent first", it will sort them by their last-edited date instead of original creation date.
On your server, create a new directory named "page_list" inside your site's "blocks" directory.
Then copy these two files:
SITEROOT/concrete/blocks/page_list/controller.php SITEROOT/concrete/blocks/page_list/view.css
...into that new directory you just made, so you wind up with these two files:
SITEROOT/blocks/page_list/controller.php SITEROOT/blocks/page_list/view.css
Now edit the new copy of "controller.php", and find this line of code (should be around line #70 or so):
$pl->sortByPublicDateDescending();
...and replace it with this code:
$pl->sortBy('cDateModified', 'desc');
Now when you choose to sort the page list by "most recent first", it will sort them by their last-edited date instead of original creation date.
The list is sorted by "Date Modified" by default, you can also sort and search on other criteria if desired.