Inline Edit inside a block (v1.0)
I have a layout that includes a template field, the template includes a block field. The block is custom defined with a few fields and has an accompanying view file. All this works and I can add a call to fuel_edit to the page layout file and edit the whole lot. I would rather be able to add fuel_edit to the block itself and edit the fields within the block - is this possible?
Comments
My more complex example which I can't figure out is a template field that is repeatable. The template has a single field, a block. I can add an edit for the whole thing in the layout file with fuel_edit('template_field_name').
I then have a foreach loop with the following code...
<?php foreach($full_width_blocks as $full_width_block) :
$block_name = $full_width_block['block']['block_name'];
if (!empty($block_name)) : ?>
<?=fuel_block('full-width/'.$block_name, $full_width_block['block']) ?>
<?php endif; ?>
<?php endforeach; ?>
This use of fuel_block does not create me an inline edit link.
I assume this is because I am specifying the view file and I need to add a link in there but I can't work out what.
Thanks!
Thanks for your help.