would it be feasible/reasonable to add the ability to assign permissions when creating TTW. That is, just have 2 pulldowns (role and group - powered by list from the site) that would assign permissions when initially creating the portlet?
the interface would be very simple; however, I have no idea if the code can connect with existing Plone machinery (such as above link).
(Note: I know there is talk of removing portlets from future versions of plone)
I've used group portlets before and they worked fine for me. Maybe your issue with the group portlet is specific to the portlet, especially if it's a custom portlet.
For generally making TTW portlets do permission-based stuff I would just wrap the body of the portlet with a tal:condition
Hi @tkimnguyen, Thanks for your input. I've come to agree with your approach. Not only does group portlets work (once I fixed my error) this keeps all the group characteristics (properties, preferences, portlets, and dashboard) in one place (group definition in control panel) .
Although assigning them directly at the portlet level might be initially easier and more intuitive, what you give up is the overview the Groups properties currently give for each group. This helps you manage properties, not just assign them adhoc.
Anyway, my thoughts. I think this is one of Plone's hidden gems. Yeah, it's there, but uses and benefits aren't always apparent.
i want to allow annon users to view a specific portlet. however, i can't use the above because anonymous is not a group defined in Plone. is there a TTW way to assign porlet permission to anonymous?