[Zope] Reading parameter from DTML
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Tue, 06 Aug 2002 15:51:40 +0200
hi,
have you read the whole zope-book? from first to last page? this was my
bible!!! after that: read the source, luke...;-)
-maik
HT wrote:
> Hi Maik,
>
> thanks for your reply.
> Yes, it is weird.
>
> Basically I'm fumbling around with DTML document.
> The intro inside the Zope Book is just too simple and the API description
> doesns't give me good understanding.
>
> As a newbie, I try to understand the concept of object (instead of
HTML) in
> Zope. But I've found many difficulties due to limited documentation.
> Is there anything you can recommend me to get started?
>
> thanks,
> Heri
>
>
> ----- Original Message -----
> From: "Maik Jablonski" <maik.jablonski@uni-bielefeld.de>
> To: "HT" <htan@gmx.de>; <zope@zope.org>
> Sent: Tuesday, August 06, 2002 8:54 PM
> Subject: Re: [Zope] Reading parameter from DTML
>
>
>
>>HT wrote:
>>
>>>Hi,
>>>
>>>I need help on why my dynamic page reading doesns't work.
>>>As an example below, I have a DTML-Method called dtml_action.
>>>this dtml_action will read the parameter from page (from the same
>>>directory) that invoked it.
>>>
>>>dtml_action document:
>>>--------------------------------------------------
>>><dtml-var standard_html_header>
>>> <dtml-var page>
>>><dtml-var standard_html_footer>
>>>-------------------------------------------------
>>>As an example, my index_html need to diplay history_html document by
>>>using dtml_action.
>>>
>>>
>>>index_html document:
>>
>>--------------------------------------------------------------------------
>
> --
>
>>><dtml-if page>
>>> <dtml-var dtml_action?page=history_html>
>>></dtml-if>
>>
>>-------------------------------------------------------------------------
>>
>>>The code inside index_html definitely doesn't work because there isn't
>>>such variable like 'dtml_action?page=history_html'
>>>But I just don't know the syntax.
>>>
>>>Can anyone help?
>>>
>>
>>hi,
>>
>>seems a little bit wired to me! maybe you should think of calling your
>>documents directly with an url...
>>
>>but maybe you should try something like this to pass your parameter in
>>your index_html:
>>
>><dtml-if page>
>> <dtml-var "dtml_action(None,_,page='history_html'">
>></dtml-if>
>>
>>and you must modify your dtml_action to include the document_src into
>>your dtml_action:
>>
>><dtml-var standard_html_header>
>><dtml-var "_.getattr(this(),page).document_src()">
>><dtml-var standard_html_footer>
>>
>>greetings maik
>>
>>--
>>Maik Jablonski __o
>>www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group
>>Bielefeld, Germany (_)/(_) www.dzug.org
>>
>
>
--
Maik Jablonski __o
www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group
Bielefeld, Germany (_)/(_) www.dzug.org