Solved

Referencing template parameters in optional region expressions

Posted on 2004-08-18
1
369 Views
Last Modified: 2008-02-20
I have a template parameter Product_ID which has a default value of "xxxnn".  I would like to define an optional region, which shows only when the value of Product_ID has been set to something other than its default value.  



I have defined the region using the following expression (generated by Dreamweaver), but it doesn't evaluate properly, because the region shows even when Product_ID is equal to "xxxnn"


<!-- TemplateBeginIf cond="Product_ID!=&quot;nnnxx&quot;" -->


What is wrong with this expression?  How do I write it so that it evaluates to True when Product_ID="xxxnn"?

(Product_ID is defined using the following expression":

<!-- TemplateParam name="Product_ID" type="text" value="xxxnn" -->)

-Alex
0
Comment
Question by:idolcemia
1 Comment
 
LVL 8

Accepted Solution

by:
alexhogan earned 125 total points
ID: 11830376
You need to identify the parameter like this;

@@@(paramname)@@@

Outside of your expression.

Here is an explanation;

http://www.macromedia.com/devnet/mx/dreamweaver/articles/template_parameters.html
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question