Solved

Referencing template parameters in optional region expressions

Posted on 2004-08-18
1
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

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…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

626 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