You are here: Home / Recent Items Portlet viewable by anonymous users Plone 4

Recent Items Portlet viewable by anonymous users Plone 4

his simple hack makes the Recent Items portlet viewable for non-logged in users rather then the default of only being viewable to logged in, non-anonymous users.

This still works, tested with Plone 4.1.7. Keep in mind, a buildout run or upgrade will likely require re-implementing this simple tweak.

Plone 4.1.7

Find <plone-instance>/buildout-cache/eggs/plone.app.portlets-2.1.7-py2.6.egg/plone/app/portlets/portlets/

Edit the file recent.py (bold text is the part to change)

    @property
    def available(self):
        return len(self._data())!=0

You may need to restart your Plone instance for this change to appear.

Enjoy!


Filed under:
Navigation