Hi,
This is more of a heads-up than a request for help.
Basically, I'm showing some graphical content (other products) based on the Section currently being shown.
I've got a block containing this:
And then a bit lower down it does this:
I do this quite merrily and all is working well. However, there is one section called "Ages 10 - 80". And for everything I've tried it will not pass through this "IF" successfully:
However, if I change the name of the section to "Ages 10 to 80" (i.e. replace the hyphen with the word 'to' and change the IF statement accordingly) then it works fine. I wonder if it is applying the calculation "10 - 80" or something? (I even checked if $currentsection == "Ages -70"!).
This is more of a heads-up than a request for help.
Basically, I'm showing some graphical content (other products) based on the Section currently being shown.
I've got a block containing this:
PHP Code:
$currentsection = "<actinic:variable name="SectionName" />";
PHP Code:
if ($currentsection == "Birthdays") {
[Go and do something]
}
PHP Code:
if ($currentsection == "Ages 10 - 80") {
[Go and do something]
}
Comment