How can I access blocks layered below other blocks in Edit mode?
PermalinkI'm guessing (hoping) there must be a way to access these blocks in Edit mode that lie beneath other blocks, but I've not found one yet. Can anyone help me with this? Is the only option to temporarily delete the block on top (save it to the scrapbook first)?
Thanks for the help! Could you tell me what files I am dealing with. I'm a real hack, but can edit if I know where. Main.css for CSS? PHP in xxx.php. Thanks a ton, thought I was done with this site until I stumbled on one more issue! Tim
Once you've done this, you should be able to modify the two php files and main.css and all the pages using either of those two template files will take advantage of the modifications.
Let me know if you need more detailed instructions.
I have made the edits as described and still no go. I had copied and renamed the theme in my root themes file some time ago to make previous changes.
I will continue to move things around and see if I can't get this to work. Thanks a bunch for your help! Tim
I am not exactly sure what is going on with my renamed template in my root directory, as I named it dark_night, selected in themes and all was OK. However now a double dark_chocolate appears in the theme selection and dark_night has disappeared even though my css edits work in the dark_night folder with the exception of the margin expansion edit on 1 page out of 50! Possibly other PHP files are being read other than those in my template file.
Much thanks for your assistance!
So did you figure out how to use the spacing code yet?
Below is an example of where to add it to default.php if you want to put some space between the header block and the blocks that follow it:
<?php defined('C5_EXECUTE') or die("Access Denied."); $this->inc('elements/header.php'); ?> <?php global $c; if ($c->isEditMode()) { echo '<div id="cms_fix001"></div>'; } ?> <div id="central"> <div id="sidebar"> <?php $as = new Area('Sidebar'); $as->display($c); ?>
All this does is insert a "div" with a CSS id named "cms_fix001" which allows it to reference the setting in the css file that sets a bottom padding value. You can adjust this value to what ever you want. If you want space between other blocks but maybe larger or smaller than the last, just duplicate the process and change the id name both in the php block and the css code.
Good luck!
Shazam... all is well! Can't thank you enough for jumping in and sticking with me as I tripped and stumbled through another education. Cheers! Tim
<div id="page">
<div id="header">
<?php if ($c->isEditMode()) { ?>
<div style="min-height: 300px">
<?php } ?>
<div id="headerNav">
<?php
$a = new Area('Header Nav');
$a->display($c);
?>
</div>
Thanks.
if ($c->isEditMode){ // output html & css style that puts the header into the normal document flow } else { // output html & css that creates your fixed header }
As for the actual html & css you will have to develop from the above. But as you have already developed a fixed position header, I guess you should be OK with that.
<?php
global $c;
if ($c->isEditMode()) {
echo '<div id="cms_fix001"></div>';
}
?>
This code works when in edit mode, add the below style to your CSS
#cms_fix001
{
padding-bottom:60px;
}