James G. Sack (jim) wrote:
> James G. Sack (jim) wrote:
>> ..
>> Exclude from navigation hides things from the leftside nav-menu, but I
>> (like you say) don't see where the "recent changes" thing comes from --
>> oh, I guess it's a portal -- I'll go looking some more.
>
> s/portal/portlet/
>
> There's
> /usr/lib64/zope/lib/python/Products/CMFPlone
> /skins/plone_portlets/portlet_recent.pt
> (all one line)
>
> That seem like it - it lives in the same place as calendar, login, etc.
> Damn, how do all these pieces fit together?
>
Here's a piece of the recipe..
A customized portlet can be created by:
in ZMI goto <root>/portal_skins/plone_portlets/portal_recent
which displays an edit page
Filesystem Page Template at .../portlet_recent
click the customize tab, then the customize button
which creates a copy of the template in the
<root>/portal_skins/custom/ subdir
and leaves you in edit mode.
The content can be edited, as can the metadata: in properties, security,
interfaces (whatever that means?).
I have verified that turning off View prevents display (but inserts an
AccessControl.unauthorized... error message).
Further, clicking the test tab shows a page containing
"name 'isAnon' is not defined"
among other things.
(Minor-) Aha! .. Now, I remember seeing a tutorial using a property
named isAnon (or allowAnon, or..). And isAnon _is_ in the template code,
so... If I can find that tutorial again, it might make more sense, now
that I have a real context.
Allowing anon viewing, rremoves the error on access by non-manager, but
still produces isAnon not defined upon clicking test from within ZMI --
so I think there may in fact be a bug in the template code, even though
it doesn't show in the usual plone interface.
There's probably an easy way (once the answer is found, it's always
easy, eh?) to either
a) hide recent changes portlet except for role >= manager
b) show recent changes but omit deletions unless manager
Recent changes in the nav-menu is, I think a feature of value to all
users, so I would vote for something like b) -- anybody else agree?
Maybe I should ask whether hiding deletions (from general users) is
considered desirable? I was thinking we're just trying to keep it from
cluttering the nav-menu.
Regards,
..jim
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-steer