By: SoftExpert
Date: 2006-06-08
Time: 11:27
|
Dynamic includeHi,
Is it possible to have this behavior, and if it is, then how to do it? On "code" side
On template side: include the file specified by the $vars['styles'] value I tried both 1.
and 2.
with no result. This error is given:
or
Also, the loaded file could have some other fields/blocks ... Please, help! |
|||||
By: Skrol29
Date: 2006-06-08
Time: 11:55
|
Re: Dynamic includeHi,
You can have this by embeddings TBS tags.
Note that embeddeds TBS tags are available only for some parameters. http://www.tinybutstrong.com/support.php#faq_embedvar |
|||||
By: Skrol29
Date: 2006-06-08
Time: 12:00
|
Re: Dynamic includeIf the subtemplate may contain TBS blocks to merge, then it's better to use [onload] instead of [onshow].
When using [onload], just take care that embedded [var] fields are well defined before calling LoadTemplate(). |
|||||
By: SoftExpert
Date: 2006-06-08
Time: 13:55
|
Re: Dynamic includeThanks for the reply!
I handled it some other way: I loaded each dynamic part an I got the Source property; finally I merged those parts in the main template with MergeField ... Seems to be just a little bit slow, though ... Is there a faster way? |
|||||
By: Skrol29
Date: 2006-06-08
Time: 19:46
|
Re: Dynamic include> Is there a faster way?
It shouldn't be that slow. It maybe comes from your usage of MergeField() is you use it too much. Don't forget that MergeField() can merge several fields in one call. |