Hi, Trying to Grock ZClasses ...... I want to create a text menu product using ZClasses. I create the product and add a zclass inherriting from dtmlmethod, then add a propertysheet called ... Properties (duh!) To the Properties I add a lines property - called Items. I then add a view enabling access to the properties from the management interface. I can now add an instance and access the properties from another DTMLMethod object End of part 1 - go for Coffee I know want to create a ZClass method that displays the lines, so in the Zclass propertysheets/methods class I add a dtml method called Show which displays the Items property. If I add the Show method to the VIEWS tab then it appears in the instance management interface. If I create another DTMLMethod called TestMenu which calls the ZClass instance ( Mn1 ) <dtml-var "Mn1.Show()"> then I egt an error trying to find the instance method Show. Any Ideas? Thanks in advance Dave
On Thursday 10 January 2002 02:19 pm, David Kyte allegedly wrote:
Hi,
Trying to Grock ZClasses ......
I think you mean grok 8^) [snip]
<dtml-var "Mn1.Show()"> then I egt an error trying to find the instance method Show.
Any Ideas?
Thanks in advance
Dave
If Show is a DTML mehod, then calling it with no arguments won't work unless there are not namespace refs in the DTML (which makes it fairly useless). Try: <dtml-var expr="Mn1.Show(_.None,_)"> Or this would also work: <dtml-with name="Mn1"> <dtml-var name="Show"> </dtml-with> hth, /---------------------------------------------------\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association c.duncan@nlada.org \---------------------------------------------------/
participants (2)
-
Casey Duncan -
David Kyte