Display a Block with editable controls in a Page

Permalink
Actually I want to display a TAB based content as a Block.

Block will accept the TAB titles along with the Select attribute handle name.

So while displaying the collections from the Main Area, I want to filter out the TAB handle and display the content with Custom layout.

I'm able to display the block content without the EDIT controls, I want the block to be displayed with all the Controls enabled.

Example:
$eb = $c->getBlocks('Main');
// Cycle through Main blocks to find the Content block.
foreach($eb as $_b) {
  if (is_object($_b)) {
     if ($_b->getBlockTypeHandle() == 'tab_content') {
         $_b->display();
         //Display the Contents for the TABs here, with editable area
     }
  }
}


Your help is deeply appreciated.

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.