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