[Zope] Skins - a few questions

Maik Roeder roeder@berg.net
Wed, 22 Dec 1999 13:14:58 +0100


Hi Max !


Here is another solution for making Skins. 


> 1)
> 
> To get started I have made a dtml method called "box" in the root of my zope
> site that looks like this:
> 
> <table spacing=3 border=0 padding=0 width=100%>
>    <tr bgcolor=green>
>       <td><font size=+1 color=white><b><!--dtml-var
> theTitle--></b></font></td>

Should be 

<!--#var theTitle-->

or

<dtml-var theTitle>


>    <tr>
>    </tr>
>       <td><!--dtml-var theContent--></td>

Same here.

>    </tr>
> </table>
> 
> 
> How do I call it from a dtml document?

template:

<table spacing=3 border=0 padding=0 width=100%>
    <tr bgcolor=green>
       <td><font size=+1 color=white><b><dtml-var theTitle>
</b></font></td>
    <tr>
    </tr>
       <td><dtml-var theContent></td>
    </tr>
 </table>
 
index_html:

<!--#var standard_html_header-->
<dtml-call "REQUEST.set('theTitle','Testexample')">
<dtml-call "REQUEST.set('theContent','You are welcome')">
<dtml-var template>
<!--#var standard_html_footer-->




Greetings,

Maik Röder