Solved

Referencing template parameters in optional region expressions

Posted on 2004-08-18
1
331 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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now