Make Sections Inline Editable in Block Layouts
Hi everybody. Beginner in Fuel CMS, first: congrats for that seems a very flexible and smart project, and second : sorry for my terrible english.
Cheers from Nice in France !
I've tried this example of Block Layouts
http://docs.getfuelcms.com/general/layouts#layouts_block_layoutsWork Fine and i'm enthousiastic about this feature, i'm just asking if it's possible to have the differents fields inline editing (actually i have the pencil enable on the page but not on this sections, i can of course add/update/order etc in the backOffice )
Inline editing will be amazing for my final users,
Have read differents topics about Block Layouts but perhaps i'm too noob to see the answer.
Thx for any help about that, and sure i've don't finish to bother you
Comments
// This will output the variable and add the pencil icon for inline editing <?=fuel_var('section')?> // OR this will just output the pencil icon for inline editing <?=fuel_edit('section')?>
i've reproduce the example of the documentation about Block Layouts, so i have in
fuel/application/config/MY_fuel_layouts.php
And in
fuel/application/views/_layouts/test.php etc .... just like documentation
what i was calling sections in my answer was more about editing online the block fields that are in the example a Title, a content wysiwyg , and an image
and i don't see where put <?=fuel_var('section')?> in this particular case
<?=fuel_var('h1', ''); ?> <?php echo fuel_edit('sections');?> <?php foreach($sections as $section) : // 'block_name' contains the hidden field value that automatically set to the name of the selected block $block_name = $section['block']['block_name']; if (!empty($block_name)) : ?> <?=fuel_block('sections/'.$block_name, $section['block']) ?> <?php endif; ?> <?php endforeach; ?>
Unfortunately, there isn't a way to do inline editing with say a single section. It's treated just as it would be in the CMS so all sections will be displayed.
Thx a lot, have nice day