By: red
Date: 2004-04-20
Time: 19:40
|
including subtemplates dynamicly
hi
a little question
why does
[tbs_include.onload;file=/disk/htdocs/redpage/templates/navigation.htm]
|
work and
[tbs_include.onload;file=[sys.template_path]navigation.htm]
|
doesn't?
the output of
is (as expected)
/disk/htdocs/redpage/templates/
thanks for your help
greets
red
|
By: Skrol29
Date: 2004-04-20
Time: 19:55
|
Re: including subtemplates dynamicly
Hi,
This is because sys tags are processed only during the Show() method.
You can force the process when you need using the method
$TBS->MergeSpecial('sys')
|
By: red
Date: 2004-04-20
Time: 20:29
|
Re: including subtemplates dynamicly
hm
tried like this:
$TBS->LoadTemplate($_SERVER["DOCUMENT_ROOT"] . "/templates/admin_pages.htm");
$TBS->MergeSpecial('sys');
$TBS->MergeBlock('chooser',$tree->getArray());
$TBS->Show();
|
but still no success... where the MergeSpecial should take place?
|
By: Skrol29
Date: 2004-04-20
Time: 20:38
|
Re: including subtemplates dynamicly
Ok, that's because the [tbs_include.onload] tag is processed during the LoadtTemplate() method. So, that's before the MergeSpecial() call.
Try this:
[sys.template_path;file=[val]/navigation.htm]
|
And let the MergeSpecial() call.
|
|
Posting in progress.
Please wait...
|