If I edit an article in frontend, the whole layout an design is shown. This makes it hard to edit articles.
So I want to remove design. After the Body tag I use
<?php if($task == 'edit') : ?>
<div id="container_main">
<div class="wrapper960">
<?php require("inc/layouts/main.php"); ?>
</div>
</div>
<?php else : ?>
(here follows original template code)
<?php endif; ?>
But it's not working, because variable $task is empty if I edit an article. Shouldn't it hold value "edit" ?
Can you please check this?
Thanks a lot.
Patrick