Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding parameters in Dreamweaver Templates in SDL Tridion 2011 SP1

I learned about Custom parameters and expressions in Dreamweaver MX templates.

So I tried adding them in my DWT TBB, like this.

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

But I am getting a blank output without any error.

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

like image 806
Patan Avatar asked Jul 19 '12 06:07

Patan


1 Answers

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

There is however a way to set variables, which is well documented here:

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

like image 117
Dave Houlker Avatar answered Sep 30 '22 21:09

Dave Houlker