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

nige
 
frz replied on at Permalink Reply
frz
cause that's what the ! operator means in any language. NOT(this)

lose the exclamation mark and you'll get what you're looking for.
nige replied on at Permalink Reply
nige
yeah I knew that (not)

Thanks Frz
frz replied on at Permalink Reply
frz
probably about the extent of PHP advice I'm good for at this point in life.. ;)
Tony replied on at Permalink Reply
Tony
isEditMode is a method, not an attribute so make sure you're including the (), otherwise it'll always return false:

$c->isEditMode()