Re: [Zope] Editing Property Sheet HTML
Tres Seaver <[EMAIL PROTECTED]> writes: > "Geoffrey L. Wright" <[EMAIL PROTECTED]> wrote: > > > 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. > > > > Then again, it's pretty late, so mebbe I'm just being dim > > If the propertysheet you want to customize belongs to a ZClass, then > you are in luck. Try adding a "Property Sheet Interface" object to > the methods tab of your ZClass: it will prompt you for the name of > the sheet, and whether you want a "view" interface or an "edit" > interface; it then creates a DTML Method with appropriate chrome > for customization. Ah -- it does, in fact. Very nice and works like a champ. Gracias. > Tres. -- Geoffrey L. Wright Developer / Systems Administrator (907) 563-2721 ex. 4900 http://www.integritysi.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Editing Property Sheet HTML
"Geoffrey L. Wright" <[EMAIL PROTECTED]> wrote: > 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. > > Then again, it's pretty late, so mebbe I'm just being dim If the propertysheet you want to customize belongs to a ZClass, then you are in luck. Try adding a "Property Sheet Interface" object to the methods tab of your ZClass: it will prompt you for the name of the sheet, and whether you want a "view" interface or an "edit" interface; it then creates a DTML Method with appropriate chrome for customization. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] 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 )
RE: [Zope] Editing Property Sheet HTML
> 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[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Editing Property Sheet HTML
"Brian Lloyd" <[EMAIL PROTECTED]> 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[EMAIL PROTECTED] > Software Engineer 540.371.6909 > Digital Creations http://www.digicool.com > > > > > ___ > Zope maillist - [EMAIL PROTECTED] > 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 ___ Zope maillist - [EMAIL PROTECTED] 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 )
RE: [Zope] Editing Property Sheet HTML
> 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 :^) Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] 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 )