Our design has a footer div with absolute positioning to sit at the bottom of each page.
This causes an issue in SimpleEdit as initially it behaves and sits at the bottom of the page, but when content is added via %__custom-contents% the footer stays where it is when the page gets taller - often the footer then overlaps the Commit button or the metadata input fields.
As soon as you commit the footer will reposition itself at the bottom of the page so it is no big deal but it has caused confusion amongst our authors as they can't click the Commit button when the footer is in the way and they forget the Alt-S shortcut.
So it would be nice to come up with a solution. Could the footer be removed / hidden completely in SimpleEdit?
[quote]So it would be nice to come up with a solution. Could the footer be removed / hidden completely in SimpleEdit?
[right][post=“8713”]<{POST_SNAPBACK}>[/post][/right][/quote]
Yup, two solutions:
One, use a show_if design area to supress the footer while in Simple Edit mode. Two, switch the WYSIWYG editor to use an iframe instead of a Div. That way, it won’t grow any bigger (it’ll just scroll).
A show_if design area around the div sounds like the best solution - something must be wrong with my code though:
The University of Western Australia Library
CRICOS Provider Code: 00126G
Can design areas be nested or is this causing my problem? I am getting 5 of the following MySource Warnings and the footer isn't hiding when in simple edit:
MySource Warning
File: [SYSTEM_ROOT]/core/assets/designs/design_area/design_area_edit_fns.inc Line: 730
Message: Tag Operation "area" unknown [CORE0175]
Backtrace: Show
Yup, you can't nest Design Areas like that. You need to do this:
The University of Western Australia Library
CRICOS Provider Code: 00126G
You can actually put that first <mysource_area> block anywhere in your Parsefile: its set not to print at that point, so it doesn't matter where the code appears. In this way, you can nest multple show_ifs too (by setting the show_if design area to print="no" too).
Great thanks - got it working 