
June 16th, 2004, 08:32 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Zope - Editable Homepage
I'm starting out with Zope.
As a learning excercise I would like to setup a homepage with 3 paragraphs on it. Each paragraph should be editable by an 'editor' user role. This would allow the editor to change the text on the homepage, but without having access to the 'manage' Zope interface, and thereby being unable to alter the structure of the page.
I've created a page template called 'index_html' and added some attributes via the manage interface to it. Then I created another page template called 'edit_homepage' which is basically a form. The idea is the form will show the current values of the 3 attributes in textarea's for the editor to change.
I would then like to press the submit button and have the attributes updated - but I've no idea how to do this at all.
The form doesn't work and produces an error to the effect that it can't find the para1...para3 attributes. I've tried here/para1...template/para1....index_html/para1 but always the same type of error.
Am I on the right track, or have I made a fatal flaw with my understanding of Zope?
My thinking was that the url for the editor to access the attributes via would be URL
I'm wondering if I should create a zClass called 'homepage' with the 3 attributes in it, and then refer to this in the template form? But then how would I go about updating it in the zodb?
Thanks,
Ian.
|