Navigation issue in edit mode

Permalink
Hi everyone,

I have a small issue with the navigation div in edit mode. When i try to edit the home page the navigation bar goes out of place, it scrolls down to content area.

It only happens in edit mode.


I have attached an example and i hope that someone can help me with this.

Regards,
Ermin

1 Attachment

 
12345j replied on at Permalink Reply
12345j
You could use the is edit mode check- I think that it goes something like this-
<?php  if ($c->isEditMode()) { ?>
      <div style="min-height: 80px">
      <?php  } ?>
but i'm sure its in the default theme if you want to look.
erminos replied on at Permalink Reply
Hi,

thanks for the quick response.

I tried this but no luck.
12345j replied on at Permalink Reply
12345j
Okay, I think i found what you need. Replace your header block with this.
<div id="headerSpacer"></div>
      <?php  if ($c->isEditMode()) { ?>
      <div style="min-height: 80px">
      <?php  } ?>
      <div id="headerNav">
         <?php 
         $a = new Area('Header Nav');
         $a->display($c);
         ?>
      </div>


and add this to your CSS
#page #headerSpacer{ height:64px }
#page #header{ position:relative; } 

I'm just taking his from the default theme so you can look at that too.
erminos replied on at Permalink Reply
I tried this too and it is not working either. With this code the navigation is displayed in non edit mode (index) page and it is messed up.
erminos replied on at Permalink Reply 1 Attachment
Just to advise that i am not using the default theme.

I attach herewith my main.css file.


Thanks in advance
12345j replied on at Permalink Reply
12345j
What do you mean it is all messed up? I didn't suggest you use the default, I was jut saying where I it that code.if by all
Messed up you mean that he nab shows normally and the others don't then add this to your header
<div class="spacer"></div>
      <?php  if ($c->isEditMode()) { ?>
      </div>
      <?php  } ?>

And uis to your CSS
div.spacer,div.ccm-spacer{ clear:both; font-size:1px; line-height:1px }
.noTopSpace{margin-top:0px; padding-top:0px}
erminos replied on at Permalink Reply
For some reason it is not working.

I did everything the way you suggested but without luck.

Can you please have a look at the picture in my attachment.

The navigation layer which is column_2 is out of place and the rest is alright.

Thanks
Ermin
12345j replied on at Permalink Reply
12345j
sure, just post the picture. also, what theme are you using?
erminos replied on at Permalink Reply
Sorry i am not able to upload the picture, it is not working.

I managed to fix my problem with apsolute positioning, now i got all my layers on the right spots, but, suddenly now i got the problem that in edit mode i am not able to select my Animation and Navigation layers.

I can't click on them to add or to edit.


Do you maybe know what this could be?

Ermin