[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Archetypes-users] Re: Using schemata for custom edit forms
I'm developing an Archetypes product in which I want to limit the
editable fields based on user roles. That is - students can edit some
fields, and lecturers can edit others. Since there is no overlap in the
fields each group needs to edit, I thought perhaps I could use schemata,
somehow hiding the navigation buttons. Alternatively perhaps I could
programmatically set the fieldset displayed on the edit form.
I can't find any documentation or suggestions on how to go forward. The
only thing I can find are various statements to the effect that it is
very hard to do a custom edit form. I've tried looking at base_edit and
edit_macros, but they just scare me.
I'd look at the edit_permission and view_permission field variables. You
can set the edit and view permissions on certain fields so that they only
apply to permissions which apply to certain roles (students or lecturers,
probably) - either using existing permissions where this makes sense or
making new ones. CMFMember's Member.py has an example, for sure.
Martin
--
"Life is both a major and a minor key" -- Travis, Side
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Archetypes-users mailing list
Archetypes-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/archetypes-users
This mailing list archive is a service of Copilotco.