in my theme footer.php
basically i dont want the js file to show in edit mode. but it show no matter what code i put in.
basically i dont want the js file to show in edit mode. but it show no matter what code i put in.
sure - I'm just wondering if the way the footer is included puts it out of scope:
if you use this instead:
if (!Page::getCurrentPage()->isEditMode()) ....
if you use this instead:
if (!Page::getCurrentPage()->isEditMode()) ....
perfect this is working fine now thanks for you help.
where are you using it?