SS Documented Code Is Not Working

This is an archive of old posting to the User Forum

SS Documented Code Is Not Working

Postby Vince Salese » Fri Sep 17, 2004 6:10 am

Here is a snippet of code from a our custom product template. If I look at
the generated source, the <br><i><i> tags always appear if there is a
product description or not. Am I wrong in thinking that the HTML tags are
part of the IF statement. In otherwords would they only take affect or be
generated if the IF statement TRUE branch is taken, or are they always
present regardless if coded this way? What I'm thinking is the IF statement
for the product description is working but I'd have to place everything
between the IF and END_IF in an INCLUDE to make it work properly.


# Product there's a more information page. This should be a one line
description.
[-- IF PRODUCT.DisplayMoreInformationPage--]
[-- IF PRODUCT.ProductDescription --]
<br><i>
[-- PRODUCT.DescriptionSize Begin --][-- PRODUCT.DescriptionStyle
Begin --]
[-- PRODUCT.ProductDescription --]
[-- PRODUCT.DescriptionStyle End --][-- PRODUCT.DescriptionSize
End --]
</i>
[-- END_IF --]
[-- END_IF --]

Thanks
Vince@ahoycaptain.com
Vince Salese
 

Re: SS Documented Code Is Not Working

Postby loren_d_c » Fri Sep 17, 2004 7:57 am

The <br>, <i> and </i> tags from this example should only be output if
the [-- IF PRODUCT.ProductDescription --] is true. But this is only part
of a bigger picture that includes other factors like 1) is there
ANYTHING in the product's Description field, including spaces 2) does
the product really have this template assigned 3) have you Published the
page since making changes to the template 4) are you looking at the
correct HTML page 5) has your browser cached an old copy of the page 6)
is there somewhere else in the template that would output the same HTML
tags, etc etc. I have never know that particular IF statement to not
work before, and I don't see any reason that putting it in an include
would make any difference.

-Loren



Vince Salese wrote:
Here is a snippet of code from a our custom product template. If I look at
the generated source, the <br><i><i> tags always appear if there is a
product description or not. Am I wrong in thinking that the HTML tags are
part of the IF statement. In otherwords would they only take affect or be
generated if the IF statement TRUE branch is taken, or are they always
present regardless if coded this way? What I'm thinking is the IF statement
for the product description is working but I'd have to place everything
between the IF and END_IF in an INCLUDE to make it work properly.


# Product there's a more information page. This should be a one line
description.
[-- IF PRODUCT.DisplayMoreInformationPage--]
[-- IF PRODUCT.ProductDescription --]
br><i
[-- PRODUCT.DescriptionSize Begin --][-- PRODUCT.DescriptionStyle
Begin --]
[-- PRODUCT.ProductDescription --]
[-- PRODUCT.DescriptionStyle End --][-- PRODUCT.DescriptionSize
End --]
/i
[-- END_IF --]
[-- END_IF --]

Thanks
Vince@ahoycaptain.com

loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 52 guests