I have a tabbed edit screen for my module. Inside one of the tabs, I launch a modal view which is another, related, form. However, I'm unsure how to render the layout without the header/footer, but retaining the styles.

Is there a way to do this?

 * Runs the procedure for rendering a modal view to the screen
 * @param Company_Module_Block_* block
 * @return void
 * @author Dan Hanly
public function renderModal($block)

To clarify; within my Modal form, I wish to render a layout with a title and form, but without the adminhtml main menu, header or footer. Just the layout by itself. I obviously want to retain styles so that my form's styling matches others.







and to remove the footer try this

| improve this answer | |
  • Wow, just like that. the footer is still there though :) – Dan Hanly Aug 28 '14 at 14:56
  • @DanHanly. See my edit. I didn't test it but it might work. – Marius Aug 28 '14 at 14:59
  • Is this before or after the loadLayout line? Doesn't seem to work for me. – Dan Hanly Aug 28 '14 at 15:01
  • 1
    After loadLayout. but, like I said. I didn't test it. I just knew how to remove the header and menu. – Marius Aug 28 '14 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.