Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Referencing template parameters in optional region expressions

Posted on 2004-08-18
1
Medium Priority
?
407 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 375 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview
Suggested Courses

876 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