[support] HTML and data: how to theme them ?

Ivan Sergio Borgonovo mail at webthatworks.it
Fri Jan 18 14:32:14 UTC 2008


On Fri, 18 Jan 2008 15:20:57 +0100
Davide Michel 'ZioBudda' Morelli <michel at ziobudda.net> wrote:

> Hi all and sorry for my english and for my stupid question:
> 
> I have one html  file (a box template) link this :
> 
> <h1>$data->title</h1>
> <p>$data->content</p>

$output.=theme('catalog_item_details',$Item);

where 
catalog_item_details is "linked" to a file named
catalog_item_details.tpl.php in your theme dir

but you're going to reformat your "html" file like

<h1><?php print $title ?></h1>

sort of

I don't know about other template engines...

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the support mailing list