[Zope] What is the best method to enter more attributes about DTL Document?
Short and probably obvious problem: what can I do to be asked for more properties while creating DTML Document (say I wanna be asked about description and keywords which I use in meta tags)? -- www.mk.maxi.pl | Even if we could state all of a system's Marcin.Kasperski | requirements, there are many details about a system @softax.com.pl | that we can only discover once we are well into its @bigfoot.com | implementation. (Parnas) ___ 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] What is the best method to enter more attributes about DTL Document?
Marcin Kasperski wrote: > > Short and probably obvious problem: what can I do to be asked for more > properties while creating DTML Document (say I wanna be asked about > description and keywords which I use in meta tags)? Short answer: Create a new ZClass-based product that contains the thigs you need. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] What is the best method to enter more attributes about DTL Document?
There's not a particularly obvious solution other than to define a ZClass which inherits from DTML Document and exposes a constructor form that asks for these properties as well as an edit form that does same. See the ZClass tutorial on Zope.org at http://www.zope.org/Documentation/Guides/ZDG-HTML/ZDG.html to get started. > -Original Message- > From: Marcin Kasperski [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 29, 2000 1:00 PM > To: Zope List Submission > Subject: [Zope] What is the best method to enter more > attributes about DTL Document? > > > Short and probably obvious problem: what can I do to be asked for more > properties while creating DTML Document (say I wanna be asked about > description and keywords which I use in meta tags)? > > -- > www.mk.maxi.pl | Even if we could state all of a system's > > Marcin.Kasperski | requirements, there are many details about > a system > @softax.com.pl | that we can only discover once we are well > into its > @bigfoot.com | implementation. (Parnas) > > ___ > 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 ) > ___ 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] What is the best method to enter more attributes about DTL Document?
Marcin Kasperski writes: > Short and probably obvious problem: what can I do to be asked for more > properties while creating DTML Document (say I wanna be asked about > description and keywords which I use in meta tags)? Maybe, customize "OFS/methodAdd.dtml" and "OFS/documentAdd.dtml". You need to change the "action", too, and do something with the new properties. The code for this handling is in "OFS/DTMLMethod.py" and "OFS/DTMLDocument.py", respectively. Dieter ___ 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 )