python - How do I make files downloadable for a particular role in Plone? -


i wish make contents of folder in plone downloadable roles. can done easily? @ present clicks hyperlink file name in folder contents can download file easily. know site-wide option of overriding at_download code using zmi.

the codeless way make use of plone's workflow system.

out-of-the-box, plone's file , image content types not have own workflow. means files , images inherit publication state of parent folder. easy , sensible, doesn't meet need you're describing.

to change situation, may use "types" configuration panel turn on independent workflow files , images. then, publication status may set separately containing folders. typically, you'd choose same workflow you're using documents. then, may publish folder , list contents while having files within private -- requiring login viewing.

if need work differently in different places, may turn on "placeful" workflow (turn on adding in add-ons panel; it's pre-installed, not active). allows different workflows in different parts of site. increases complexity, ideal solution kind of puzzle.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -