if (!$c->isEditMode – doing the opposite!
Permalink
I copied and pasted the spacer class (in its entirety) to another site above a div to make a bit of space in edit mode because of overlaps.
It works – BUT in preview mode NOT edit mode.
In other words its doing the opposite of what its supposed to do.
Any ideas?
Nige
It works – BUT in preview mode NOT edit mode.
In other words its doing the opposite of what its supposed to do.
Any ideas?
Nige
yeah I knew that (not)
Thanks Frz
Thanks Frz
probably about the extent of PHP advice I'm good for at this point in life.. ;)
isEditMode is a method, not an attribute so make sure you're including the (), otherwise it'll always return false:
$c->isEditMode()
$c->isEditMode()
lose the exclamation mark and you'll get what you're looking for.