I want to show a when editing a page
Permalink
Hi folks
I have a div with an editable area in it which contains an image block in the page defaults.
I only want this to be visible when editing the page.
Idea is, I'll put display: none on it when not editing the page.
How can I do this?
Thanks
Dave
I have a div with an editable area in it which contains an image block in the page defaults.
I only want this to be visible when editing the page.
Idea is, I'll put display: none on it when not editing the page.
How can I do this?
Thanks
Dave
What the attached block does is adding an image to your area from the file manager (as with a standard image block), but it will only show if the page is in Edit mode, which is the only small change I made from the Designer Content output.
You can grab the whole attached zip and extract to your 'root/blocks' folder. Then you need to install it by going to 'yourdomain.com/index.php/dashboard/extend/install/'.
Now the image block I just created will output the full size of the image, but if you try to create this yourself with Designer Content you can set other dimensions as well.