I got a little bit of help with this earlier in the year from some very nice people. Now I'm pushing my luck by asking for a bit of help with this blockif.
For some bizarre reason, it's not working. I can't recall the number of times I've heard somebody say that on the forum, but this time I really mean it. Lol.
On the main live site, I have the following:
This code did work. Seriously, it did. What it should do is eliminate a couple of <div>'s I have in the sidebar, to effectively make the SSL pages load a tiny bit quicker.
The content of the <div>'s should appear if the blockif doesn't read as, in short:
If PageType is not equal to Shopping Cart OR Checkout Page 0 OR 1 OR 2 OR 3
Then the <div>'s should be shown. If the page is one of those above, then the <div>'s shouldn't be generated. But they are.
Strange thing is, I've tried it using quotation marks and apostrophes on this computer and it still doesn't work as expected. The original version still works which Darren provided, but doesn't work if inverted. The original can be found here
Any ideas, or am I just being totally stupid?
I think I can handle the answer
Thanks,
Grant
For some bizarre reason, it's not working. I can't recall the number of times I've heard somebody say that on the forum, but this time I really mean it. Lol.
On the main live site, I have the following:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Shopping%20Cart%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%200%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%201%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%202%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Checkout%20Page%203%22"> <div class="block"> <h2>First Title</h2> <p>Here's some content...</p> <div class="footer"></div> </div> <div class="block"> <h2>Some Title</h2> <p>Blah blah, some content</p> <div class="footer"></div> </div> </actinic:block>
The content of the <div>'s should appear if the blockif doesn't read as, in short:
If PageType is not equal to Shopping Cart OR Checkout Page 0 OR 1 OR 2 OR 3
Then the <div>'s should be shown. If the page is one of those above, then the <div>'s shouldn't be generated. But they are.
Strange thing is, I've tried it using quotation marks and apostrophes on this computer and it still doesn't work as expected. The original version still works which Darren provided, but doesn't work if inverted. The original can be found here
Any ideas, or am I just being totally stupid?
I think I can handle the answer
Thanks,
Grant
Comment