Custom Block & Composer - How do you show the edit mode?

Permalink
I've added a custom block to a composer page type so when you edit a Blog Entry it appears within a bar with an "Edit" link to allow you to change the values. What do I have to do to make it show in the edit mode by default (like the content blocks)? Is there a controller method I need to add?

Many thanks in advance!

Alex

alexaalto
 
foiseworth replied on at Permalink Reply
foiseworth
Apologies for the delayed reply but I came across the same issue and couldn't find an answer. The below worked for me on 5.5

<?php if (!$c->isEditMode() && !strpos($c->cFilename, 'dashboard/composer')): ?>
   <!-- Conditional code goes here -->
<?php endif; ?>