Hi there
I know similiar issues have been raised previously but in this case I can't seem to solve the problem using the forum. Basically I have some click to enlarge images throughout my store. However I want to disable this feature on the Homepage (in the best sellers section which appears on my homepage) for reasons which aren't relevant. Anyway I have achieved this quite nicely using a 'block if' statement...
(<actinic:variable name="SectionLevel" /> != "")
ie only show this as a <a href> if not on the Hompage
I have noticed on the Homepage SectionLevel =="" not "0" anyway this works fine however every now and again I get the error SectionLevel is used out of context. If I click on the error it seems ok for a while then it will randomly resurface.
In order to combat this problem I have tried using the 'isBrochureHomepage' varible which does exactly the same thing and results in exactly the same problem.
As i said earlier everything works perfectly and uploads fine so overlooked it up til now, however, if i provide my client (who is running business edition) with a new site def, the coding error may rear its head and obviously they don't have access to the code. Second to this its for my satisfaction as well to get this sorted....
I'm aware that the 'out of context' error is usually down to using a variable in the wrong place but surely 'isBrochureHomepage' or 'SectionLevel' can be used on the homepage
Any ideas anyone?
Thanks in advanced
Matt
I know similiar issues have been raised previously but in this case I can't seem to solve the problem using the forum. Basically I have some click to enlarge images throughout my store. However I want to disable this feature on the Homepage (in the best sellers section which appears on my homepage) for reasons which aren't relevant. Anyway I have achieved this quite nicely using a 'block if' statement...
(<actinic:variable name="SectionLevel" /> != "")
ie only show this as a <a href> if not on the Hompage
I have noticed on the Homepage SectionLevel =="" not "0" anyway this works fine however every now and again I get the error SectionLevel is used out of context. If I click on the error it seems ok for a while then it will randomly resurface.
In order to combat this problem I have tried using the 'isBrochureHomepage' varible which does exactly the same thing and results in exactly the same problem.
As i said earlier everything works perfectly and uploads fine so overlooked it up til now, however, if i provide my client (who is running business edition) with a new site def, the coding error may rear its head and obviously they don't have access to the code. Second to this its for my satisfaction as well to get this sorted....
I'm aware that the 'out of context' error is usually down to using a variable in the wrong place but surely 'isBrochureHomepage' or 'SectionLevel' can be used on the homepage
Any ideas anyone?
Thanks in advanced
Matt
Comment