Sunday 21 May 2006 12:48:17 pm
Hi everybody
I'm designing an extension to the admin interface to be able to choose colors from the backoffice (Hn tags, menus, etc...), or to choose some layout preferences. It works fine. But I've a bunch of additional attributes in my content classes, and the edition is really cumbersome. So I'm looking for a mean to edit only some subpart of the content object. My idea is to add a button "edit CSS attributes" for instance in the in the button bar of the contents navigation part. It would call the edit action, but I just would show the concerned attributes.
I'd like to rely on the standard edit framework, and only update the attributes I wish to modify. My problem is that I don't know how to let the template know that it has been asked to show only this or that kind of attributes. I have to give it this information, and I don't see how.
If I add a hidden attribute in the admin content/view template, I don't know how to get it, since the content/action modules filters the values that are passed to the edit module, which however doesn't seem to be designed to give them to the template. If I use a content action, I don't know how to let the system transmit this information to the template, and then rely on the standard edit.
Is there a way to achieve this? Thanx Eric
|