Closed (fixed)
Project:
Side Content
Version:
6.x-2.0-beta2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jun 2009 at 13:54 UTC
Updated:
26 Oct 2011 at 10:09 UTC
Hi,
I've got Side Content enabled on a couple of sites, however am having to use a different theme when in Edit mode, as the Side Content doesn't disappear, this means that I have a very narrow window for editing the text, which using the FCK Editor means I need to scroll left and right to read a single line.
If the Side Content disappeared (in the same way as the main 'Body' field disappears), when you're in Edit mode, this would be a really big help!
Thanks!
Comments
Comment #1
knstephens commentedYou can check if a user is logged in by checking the $logged_in variable. If it is set to 1 then a user is logged in.
You can then opt to show content only when no-one is logged in with the following code:
Your HTML here....
Hope this helps!
Comment #2
1websitedesigner commentedHi knstephens, Thanks for your suggestion.
I've actually now found a simple solution to this problem, which is that on the blocks page under the side content block (e.g. admin/build/block/configure/sidecontent/0) I select:
'show on every page except the listed pages'
Then add:
node/*/edit
This means whenever I'm editing a page, it doesn't show this block, but I still see the contents when I'm in view mode. This could be handy in other situations too if it helps to remove blocks so you have a wider screen or less other components when editing a page.
Comment #3
dman commentedThat's actually a really handy tip. Could be put in the handbook somewhere!
Comment #5
samwillc commentedThat is indeed a very handy tip, I needed to achieve hiding a page header block when in edit mode. thanks!