nuxeo-localizer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nuxeo-localizer] using LocalFolder with DTMLMethods


From: Juan David Ibáñez Palomar
Subject: Re: [Nuxeo-localizer] using LocalFolder with DTMLMethods
Date: Tue, 12 Mar 2002 11:26:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020214

Luistxo Fernandez wrote:

I created a LocalFolder 'Luistxo'

Added a property 'picture', then two images, picture_en and picture_es

Then I render the result with <dtml-var "Luistxo.picture"> . OK, so far.

Now I add a property, 'mymethod', then two DTMLmethods, mymethod_en and mymethod_es 
with very simple content: <dtml-var title_or_id>

Then I try to render the result with <dtml-var "Luistxo.mymethod"> . But it returns just a 
string of characters, literally "<dtml-var title_or_id>", not the title or id...

How do I render a DTMLMethod through LocalFolder?


You have to call it, try <dtml-var "Luistxo.mymethod(_.None, _)">.
Remember the syntax of dtml-var:

  <dtml-var name>

or

 <dtml-var "expr">

The double quotes make a difference.

--
J. David Ibáñez, Nuxeo.com
Debian user (http://www.debian.org)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]