I noticed some calls to &dtml-xxxx. I haven't really seen it before and still learning zope. Can anyone answer the following: What is the "&dtml-" syntax? What is it used for? Is there any reference to it? Thanks alot. Chris __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Hi Chris, That's the "Entity Syntax" of the DTML var tag. Check out: Hmm. I was going to give you a link to the docs at Zope.org. but I can't seem to get to it right now... Here's what it says: -----8<-- Start Snip --8<----- Var Tag Entity Syntax Zope provides a shortcut DTML syntax just for the simple var tag. Because the var tag is a singleton, it can be represented with an HTML entity like syntax: &dtml-cockatiel; This is equivalent to: <dtml-var name="cockatiel" html_quote> The main reason to use the entity syntax is to avoid putting DTML tags inside HTML tags. For example, instead of writing: <input type="text" value="<dtml-var name="defaultValue">"> You can use the entity syntax to make things more readable for you and your text editor: <input type="text" value="&dtml-defaultValue;"> The var tag entity syntax is very limited. You can't use Python expressions and some tag attributes with it. ----->8-- End Snip -->8----- When you have some time, you should check out The Zope Book. Eric.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Bruce Sent: Thursday, July 19, 2001 10:43 AM To: zope@zope.org Subject: [Zope] &dtml-???
I noticed some calls to &dtml-xxxx. I haven't really seen it before and still learning zope. Can anyone answer the following:
What is the "&dtml-" syntax? What is it used for? Is there any reference to it?
Thanks alot.
Chris
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.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 )
On Thu, Jul 19, 2001 at 10:42:35AM -0700, Chris Bruce wrote:
I noticed some calls to &dtml-xxxx. I haven't really seen it before and still learning zope. Can anyone answer the following:
What is the "&dtml-" syntax? What is it used for? Is there any reference to it?
While demoing at our LosAngelesZopeUsersGroup meeting last nite, Kapil pointed out the lonely little help link in the upper right hand corner of the zope management interface screen. He noted that it is chock full of really help-ful stuff and that few seem to use it... If you click on that help link and browse to "Zope Help" then "DTML Reference" then "var" you will find your answer: """ var tag entity syntax: &dtml-variableName; Entity syntax is a short cut which HTML quotes the variable. It is useful when inserting variables into HTML tags. """ Learning to trust the built in help will save you lots of frustration, it won't get you *all* the answers but is usually a great place to start. hth, -- charlie blanchard http://baldguru.com/ LosAngeles area Zope Users Group http://lazug.org
Wow, I never noticed that Help! link before, or never bothered to click on it. Perhaps the link should be illuminous pink or something with the words click on me, i am good (or is that what help means anyway) ;-) Whenever I've been stuck, I've always dived straight for www.zope.org, but now that Help! link has been brought to my attention I shall have another option. Cheers Tim
While demoing at our LosAngelesZopeUsersGroup meeting last nite, Kapil pointed out the lonely little help link in the upper right hand corner of the zope management interface screen. He noted that it is chock full of really help-ful stuff and that few seem to use it...
Chris Bruce wrote:
I noticed some calls to &dtml-xxxx. I haven't really seen it before and still learning zope. Can anyone answer the following:
What is the "&dtml-" syntax? What is it used for? Is there any reference to it?
Thanks alot.
Chris
See: http://www.zope.org/Members/AlexR/EntitySyntax -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
participants (5)
-
Casey Duncan -
Charlie Blanchard -
Chris Bruce -
Eric Walstad -
Tim