Help! Can't Edit Content Area

Permalink
Hello,

I'm a bit new to Concrete5. I'm building a site with custom templates. I've succeeded for the most part in adding editable areas to my templates by using the code below:

<?php
$a = new Area('WakeNav_1');
$a->setBlockLimit(1);
$a->display($c);
?>

Today I used the above code to try and add an editable area to which I would like to add an Auto-Nav. In edit mode I can see the new area just fine (a long thin blue area the length of the container div) but when I mouse over it my cursor doesn't show the area as hot so I can't bring up the menu to add content. All of the other editable areas have shown up just fine using the same code.

Anyone have any ideas?

Thanks in advance.

 
mkly replied on at Permalink Reply
mkly
This is always a tough one. It typically depends on your css/grid/framework. You can try wrapping a div around it.
<div><!-- just a blank div, you can try spans too -->
  <?php
    $a = new Area('WakeNav_1');
    $a->setBlockLimit(1);
    $a->display($c);
  ?>
</div>

You can also check to only do things when in edit mode.
<?php $is_edit_mode = Page::getCurrentPage()->isEditMode() ?>
<?php if($is_edit_mode): ?>
  <div>
<?php endif; ?>
    <?php
      $a = new Area('WakeNav_1');
      $a->setBlockLimit(1);
      $a->display($c);
    ?>
<?php if($is_edit_mode): ?>
  </div>
<?php endif; ?>


Wish I could be more specific but it can depend on a lot of factors. Maybe try playing around in Firebug or something similar, might help to find the particular issue.
heyward replied on at Permalink Reply
Thanks for the tips! I'll give them a try.
webnut replied on at Permalink Reply
webnut
Were you able to figure this one out?
I have the exact same issue.

I have a navigation div, will be using UL for drop down menu.
Currently the new area inside that div get's focus but is not editable.