Admin interface component->button

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
THE_AI
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sat Jun 03, 2006 4:33 pm
Contact:

Admin interface component->button

Post by THE_AI » Thu Nov 22, 2007 8:35 pm

Hello @ll!

I'm following this tutorial:
http://dev.joomla.org/component/option,com_jd-wiki/Itemid,/id,components:hello_world_mvc4
but I don't understand something.

When I put the files in administrator/component/com_hello I can not access my component from the backend.

There is no button that I can click on.

Sure I can write the address "index.php?option=com_hello" and there it is, but why I don't have a button?

I understand that the button is created from the xml file or?

So I put the xml file in adminsitrator/component/com_hello and I don't have my button.

If I install the component and then delete this hello.xml - the button is still there.

I make refresh after refresh and nothing change.

Can someone please explain me what am I doing wrong?

Greetings!
Well, now I will try to develop extensions :)

User avatar
manuman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Fri Aug 12, 2005 1:58 am
Location: Albany - Western Australia
Contact:

Re: Admin interface component->button

Post by manuman » Fri Nov 23, 2007 12:37 pm

I'm assuming your asking about he link to the component in the Components menu.

This link is created during installation. Joomla!'s installer reads the xml file and creates the link (if your interested its in the components table in the database). Once its there removing the xml will not remove the link, only uninstalling the component can do that.

Short of installing the component the only other way to create the link is to add it to the components table manually. For example, you may do this when developing a component.

Cheers
Shayne
Core Team Member :: Project Manager & Foundation WG Coordinator
OSM Board Member :: Treasurer
Vote for Joomla! http://www.packtpub.com/nominations-homepage

User avatar
THE_AI
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sat Jun 03, 2006 4:33 pm
Contact:

Re: Admin interface component->button

Post by THE_AI » Sat Nov 24, 2007 1:55 pm

Thank you!

I get it.

Does that also mean that later if I add submenu as hello->submenu1
hello->submenu2 I will have to install my extension again? Or it will be automatic updated?
Well, now I will try to develop extensions :)

User avatar
manuman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Fri Aug 12, 2005 1:58 am
Location: Albany - Western Australia
Contact:

Re: Admin interface component->button

Post by manuman » Sun Nov 25, 2007 4:06 am

Easiest is to manually add a row to the components table ensuring you have the parent field set to the id of the top level component. If you have several sub menu items you can use the ordering field to set their order.
Core Team Member :: Project Manager & Foundation WG Coordinator
OSM Board Member :: Treasurer
Vote for Joomla! http://www.packtpub.com/nominations-homepage


Post Reply