cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco blog

statira
Confirmed Champ
Confirmed Champ
Hi guys! I added a blog to one of my sites and when I open it, the latest posts are shown. I can click 'all' of course but how can I make it to show all the posts by default, not only latest?
1 REPLY 1

steven_okennedy
Star Contributor
Star Contributor
Hi Statira

There's no easy way that this can be configured as far as I know.  You can use a direct shortcut url adding the filter of choice to the url (e.g. http://server/share/page/site/site-name/blog-postlist?filterId=all) but I doubt that's likely to be very useful as it obviously won't be used by Share when someone clicks the Blogs button - you'd have to use it as a favourite.

The other option is a customisation to override the default which is set in the controller of the postlist webscript - postlist.get.js.  It would be a simple one word change to what's there, so you could do it as a simple webscript override, supp;ying a "custom" version of this controller instead of the original using the /extension/… classpath. 

But you could also probably use the methods outlined here http://docs.alfresco.com/5.0/tasks/dev-extensions-share-tutorials-js-customize.html to just alter the value of the initialFilter.  This would likely be a more maintainable mechanism in this case

Regards

Steven