Adding Parameters to Dreamweaver Templates in SDL Tridion 2011 SP1

I learned about User Preferences and Expressions in Dreamweaver MX Templates.

So I tried to add them to my TBW TBW, like this.

<!-- TemplateParam name="border" type="number" value="1" --> @@ border@ @ <table> <tr> <td>@@(border)@@</td> <td><!-- #TemplateExpr expr="border" --></td> </tr> </table> 

But I get empty output without errors.

I want to add variables to my Dreamweaver TBB and get their values. Can anyone suggest if there is another approach?

+6
source share
1 answer

Unfortunately, Tridion DWT only shares some syntax with full Dreamweaver templates, so the above syntax will not work.

However, there is a way to set variables that are well described here:

http://www.tridiondeveloper.com/get-and-set-variables-in-dwts

+6
source

Source: https://habr.com/ru/post/920862/


All Articles