Re: [Zope] Editing Property Sheet HTML
"Brian Lloyd" <brian@digicool.com> writes:
The question is ... how do I do it? I'd like to make the default textarea field quite a bit bigger -- but I wasn't able to explore my way to success in the interface, and about 20 mins of seaching has yielded no answers.
You could edit lib/python/OFS/properties.dtml, which renders the property management screen. The DTML in there has gotten pretty scary over time though :^)
Yikes! But thanks ... I think I can hack it into submission. And here's a followup question: If I want to make a custom Properties view for a specific ZClass, how do I proceed? Just create an additional method for the class and add it under Views? And if I do this, is there any kind of DTML templete (sort of like the default add and addForm methods) that I can work from? And do I need to go this far if I (for example) simply want to change the display order for existing properties? Many thanks (as always) for any answers you have...
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Geoffrey L. Wright Developer / Systems Administrator (907) 563-2721 ex. 4900 http://www.integritysi.com
If I want to make a custom Properties view for a specific ZClass, how do I proceed? Just create an additional method for the class and add it under Views?
That's what I'd do.
And if I do this, is there any kind of DTML templete (sort of like the default add and addForm methods) that I can work from? And do I need to go this far if I (for example) simply want to change the display order for existing properties?
Yes - if you don't like the existing property form, you need to make your own. You should be able to start with the stock properties.dtml source for the new view and make your changes starting from there... Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
participants (2)
-
Brian Lloyd -
Geoffrey L. Wright