Hi Skrol29,
I found something about the 'script' and 'file' parameters.
My index.html template is in a subfolder, and here are the pages used:
index.php
main.php
/inc/classes/template.php (TBS)
/tpl/default_tpl/html/index.html
/tpl/default_tpl/html/footer.html
/tpl/default_tpl/html/header.html
/tpl/default_tpl/positions/left.php
/tpl/default_tpl/positions/right.php
|
Ok, I know, there's quite a bit of files..
So in the index.html template I have:
<table width="951" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3">[onload;file='header.html']</td>
</tr>
<tr>
<td>[onload;script='tpl/default_tpl/positions/left.php';subtpl]</td>
<td>[onload;script='main.php';subtpl]</td>
<td>[onload;script='tpl/default_tpl/positions/right.php';subtpl]</td>
</tr>
<tr>
<td colspan="3">[onload;file='footer.html']</td>
</tr>
</table>
|
So I just figured out that the 'file' parameter searches the files relatively to the position of index.html in the site while the 'script' parameter searches the files relatively to the file(here index.php) in which the template(here index.html) is called.
Why is there such a difference?
Thanks for your answer
OverNode