[Zope] <dtml..> show dynamic page

D. Rick Anderson ruger@comnett.net
Mon, 05 Aug 2002 01:57:44 -0700


I think you can get what you want with:

<dtml-var standard_html_header>
   <dtml-var "_[pg]">
<dtml-var standard_html_footer>

Rick


HT wrote:

> Hi,
>  
> I have problem understanding thte DTML document and hope some expert help.
>  
> examples:
> The code below is found in my index_html
> basically this index_html is wrapping 3 more documents which are 
> listed below in dtml-var.
> This is fine and works well.
> But please look at 2nd example:
>  
> 1st example:
> ---------------------
> <dtml-var standard_html_header>
>    <dtml-var my_content_page>
> <dtml-var standard_html_footer>
> -----------------
>  
>  
> 2nd example of dynamicpage document
>  
> ---------------------
> <dtml-var standard_html_header>
>    <dtml-var pg>
> <dtml-var standard_html_footer>
> -----------------
>  
> The <dtml-var pg> contain dynamic pg variable.
> At the present moment, I don't know what page, the user is selecting.
>  
> Assume, the user select: http://myzope/dynamicpage?pg=userinfo
>  
>  
> If I use the 2nd example, the <dtml-var pg> resolve the page as a 
> String instead of as document.
> How to solve this?
>  
>  
>