How to pass template name dynamically to <?call-template:test?>function
Hi All,
I have imported sub template into my main RTF template.
Contents in Sub template are as follows.
<?template:TEST1?>
---content
<?end template?>
<?Template:TEST2?
--content
<?end template?>
From main template i can make to call to sub template with following syntax.
1 ) <?call-template:TEST1>
2) <?call-template:TEST2>
Since multiple template exist in Sub template such as TEST1, TEST2... How can I call this dynamically without hard coding(TEST1) from the above syntax?
Note:
Eg. TEST1 or TEST2 etc pulled from xml tag. so how i can pass the XML tag information to call template.
I have tried below syntax but it did not work.