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 7022861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:38:12+00:00 2026-05-27T23:38:12+00:00

I just followed the joomla tutorials on how to create the perfect MVC joomla

  • 0

I just followed the joomla tutorials on how to create the “perfect” MVC joomla component. However, my problem is that I don’t know yet how to assign it to a menu. I thought that my component would then just show up when I select a “menu item type”, but my component is not on this list. I’ve made some research on Google, but I cannot find the answer… Do I have to create a metadata.xml file or something similar ?
Thanks in advance for your answers !!

  • 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-05-27T23:38:13+00:00Added an answer on May 27, 2026 at 11:38 pm

    To create “views” for your component, you have to create some xml files.
    Inside the templates folder in the frontend part of your component (usually something like /components/com_yourcomponent/views/someview/tmpl), if you had a template named default.php and form.php, you can create a default.xml file and a form.xml file to make these menu items available from the administrator.
    You can take a look at other components to see the structure of these xml files, but what you should put inside is:

    1) A name and a description for four view
    2) The params the user will be able to change from the administrator (it works like module/plugin params)
    3) You can also set “hidden” request variables for that menu item. It means that those vars will be added to the request in that particular menu item, but the user won’t be able to change its value.

    Here’s a complete example for a component (Joomla 1.7):

        <?xml version="1.0" encoding="utf-8"?>
        <metadata>
            <layout title="COM_AGMTAGS_TAG_VIEW_DEFAULT_TITLE">
               <message>COM_AGMTAGS_TAG_VIEW_DEFAULT_DESC</message>
            </layout>
        <fields name="request" addfieldpath="/administrator/components/com_agmtags/models/fields">
            <fieldset name="request">
               <field name="tag_id" type="agmtag"
                label="COM_AGMTAGS_TAG_FIELD_NAME_LABEL"
                description="COM_AGMTAGS_TAG_FIELD_NAME_DESC"
               />
            </fieldset>
        </fields>
        <fields name="params">
            <fieldset name="basic" label="COM_AGMTAGS_TAG_OPTIONS">
               <field name="layout_type" type="hidden" default="blog" />
           <field name="show_tag_name" type="list"
                label="COM_AGMTAGS_SHOW_TAG_NAME"
                description="COM_AGMTAGS_SHOW_TAG_NAME_DESC"
               >
                  <option value="">JGLOBAL_USE_GLOBAL</option>
                  <option value="0">JHIDE</option>
                  <option value="1">JSHOW</option>
               </field>
               <field name="show_tag_description" type="list"
                description="COM_AGMTAGS_SHOW_TAG_DESCRIPTION_DESC"
                label="COM_AGMTAGS_SHOW_TAG_DESCRIPTION_LABEL"
               >
                  <option value="">JGLOBAL_USE_GLOBAL</option>
                  <option value="0">JHIDE</option>
                  <option value="1">JSHOW</option>
               </field>
               <field name="items_per_page" type="text" default="" />
               <field name="container_class" type="text" default="agmtags-list" />
            </fieldset>
        </fields>
        </metadata>
    

    I hope it helped!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know if this is correct - I just followed the example on
I realized today that I have blindly just followed this requirement for years without
I just installed Web Developer Express 2008 and the MVC framework (followed all the
I just started learning targets, and have followed all the instructions to create my
I just followed an MVC tutorial on creating an image Gallery, which connects the
I've followed the tutorial below, it basically just tells you to create a button
i'm making a lightbox, i've followed tutorials just to get this far, and i'm
I have just meticulously followed MS instructions for customising a dynamic data page template
I've followed this example: RCP+JavaWS but the app just briefly comes up and goes
I just started using git with github. I followed their instructions and ran into

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.