By: bunak
Date: 2008-01-28
Time: 14:21
|
How run function where template is loaded
Hi all, do anybody know if there is possibility in TBS how run function when template is loaded.
i.e. something like this
<div class="menu">
[onload;script=my_module_loader("module name","param1");subtpl] <!-- this return part of html page-->
</div>
<div class="content">
[onload;script=my_module_loader("other module name");subtpl]
</div>
|
or it may be a good idea for new version of TBS.
thx
Bunak
|
By: Skrol29
Date: 2008-01-28
Time: 15:46
|
Re: How run function where template is loaded
Hi,
For security reasons, TBS do not allow to call any function directly from the template. You have to prepare those functions to be callable by parameter "onformat" for example (this allay you the put arguments as TBS parameters.
Or you can use OOP features.
|
By: bunak
Date: 2008-01-29
Time: 14:37
|
Re: How run function where template is loaded
Thanks Skrol29, OOP is good idea. I'll test it.
|
|
Posting in progress.
Please wait...
|