Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9248619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:59:05+00:00 2026-06-18T09:59:05+00:00

I created a new menu item, lets call it My menu item. Its shown

  • 0

I created a new menu item, lets call it “My menu item”. Its shown in the admin area of Magento.If the new item is clicked, I Dont want to show a grid, but a simple form with some text fields and a button the should trigger an action. How would I do that? All examples I found created a grid to display data, thats not what I want. I just want a form right “behind” my menu item

Is that possible?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:59:06+00:00Added an answer on June 18, 2026 at 9:59 am

    Yes its completely possible as the framework is extensible in nature. Why dont you do the following.

    1.) Make sure your adminhtml controller is working.
    2.) create the action you have specified in the action tag in your menu item.
    3.) in said action simply :

    $this->loadLayout();
    $this->renderLayout();
    

    thats all need for the controller. At this point you should be loading the standard magento admin layout. So you want to add a form to the page? Ok, easy.

    4.) Declare a layout xml file for your module. i.e. in your etc/config.xml i.e.
    place this outside of the global node.

    <adminhtml>
        <layout>
            <updates>
                <yournamespace_yourmodule>
                    <file>yourfile.xml</file>
                </yournamespace_yourmodule>
            </updates>
        </layout>
    </adminhtml>
    

    so where would you place this file?

    well thats up to you, but I would suggest putting it in app/design/adminhtml/default/default/layout

    what is this file for? well we can register a block and set a template file to it.

    the file could look something like

    <?xml version="1.0" encoding="UTF-8"?>
    <layout>
    <adminhtml_yourcontroller_youraction>
        <reference name="content">
             <block type="yournamespace_yourmodule/adminhtml_yourblock"
                    name="yournamespace_yourmodule_form" template="yourformtemplate.phtml"/>
         </reference>
    </adminhtml_yourcontroller_youraction>
    </layout>
    

    so the next steps would be

    5.) declare a new block following how you are referencing it in your layout xml file

    EDIT : To clarify on the block file, continuing with the example, create a file in you module directory, under Block/Adminhtml and name it “Yourblock.php” or whatever you would like to, making sure it corresponds to your block declaration :

    <block type="yournamespace_yourmodule/adminhtml_yourblock" ... found in your layout file.
    

    Here is an example of what the Block Class could look like :

    <?php
    
    class Yournamespace_Yourmodule_Block_Adminhtml_Yourblock extends Mage_Adminhtml_Block_Template
    {
         //to statt you dont really need anything here, but this is where you would place you block methods that can assist your template file when it needs data or other logic...
    }
    

    6.) Create a template file and place it correclty, in my example place it in

    app/design/adminhtml/default/default/template

    add your php form to it (or some standard html to check its working properly)

    thats it (in terms of displaying a form – of course you now need to create actions to accept your form POST and all the rest of it).

    To recap.

    • Declare a adminhtml layout update file
    • Declare a new adminhtml block
    • Instantiate the block and set its template file making sure the layout update is specific to your controller action only. (all within the layout xml file)
    • In the controller action, simply load and render the layout.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a new Menu in the admin panel of Wordpress for
I created a new menu item: my_RegistrationForm_menu_item (type = Registration Form ). But when
I created a new module and a new top level menu item in the
I want to add new item to the android settings, i.e. go to menu
I've created new db via phpMyAdmin and while editing db privilages clicked delete localhost
Lets go from the start Created New Xcode project,opened interface builder dragged one NSButton
I created a label using the new label context menu: I defined the parameters
I have created custom menu in my application, i have already set its background,border
I'm doing these steps: Create new vs2010 C# console application Project menu -> Add
Hi I am new to wicket framework, I need to create a context menu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.