Want to write Product Name on top of page
Posted: Wed Dec 17, 2008 12:43 pm
I want to write the Product Name in the StandardHeader.htm when
a Product Page is displayed. For all other pages, I want default text.
I tried this. I does display the Product Name for the Product Pages,
but it is displaying the string "$Product.Name" for all other pages:
#if($Product.Name.Length==0)
"default text" << want displayed for every page except for Product Pages
#else
$Product.Name << displayed only on Product Pages
#end
This is what I want it to do:
#if < for any page other than a Product Page >
"default text"
#else
$Product.Name
#end
Is there a way to do this? thanks
a Product Page is displayed. For all other pages, I want default text.
I tried this. I does display the Product Name for the Product Pages,
but it is displaying the string "$Product.Name" for all other pages:
#if($Product.Name.Length==0)
"default text" << want displayed for every page except for Product Pages
#else
$Product.Name << displayed only on Product Pages
#end
This is what I want it to do:
#if < for any page other than a Product Page >
"default text"
#else
$Product.Name
#end
Is there a way to do this? thanks