Support

Admin Tools

#10048 Admin Tools Installation/update

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 29 September 2011 05:33 CDT

user14125

Would it be possible to modify the installation/upgrade of Admin Tools on Joomla 1.5 in the following way:

During installation/upgrade the admin tools component is added to the jos_components table. The database table field "link" in jos_components contains the link to admin tools component: option=com_admintools
If this link is present, a conent editor can create a new menu item to Admin Tools but that doesn't work. It's also not usefull.
So my suggestion is: keep the field "link" empty. This way Admin Tools doesn't show up in the add new menu-item wizard...

Thanks!

nicholas
Akeeba Staff
Manager
Nice catch of a real issue, but that's a wrong proposed solution :)

If Admin Tools is not added to the menu table, then there will be no menu item in your back-end's Component menu pointing to Admin Tools, therefore you won't be able to access the component except by typing a URL like http://www.example.com/administrator/index.php?option=com_admintools Yes, in this case Admin Tools does not appear in the menu type dialog, but that's just a byproduct of doing something wrong in the first place.

As you mentioned, Admin Tools does appear on the link type selection box. This is because Admin Tools as an unused front-end view which does not have a metadata.xml file to hide it. So, the correct solution is for me to add a metadata.xml file in the front-end view to hide it from the menu type box. And that's something I'm going to do for the next release.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user14125
Hi Nicholas,

Thanks for your reply! I tried clearing the "link" field in the jos_components table. When I did that, I couldn't add a link to Admin Tools in a frontend menu and in the Joomla backend Admin Tools still kept working... So for me that was a perfect work-around :-)
I did all that in Joomla 1.5. Haven't tested it on 1.6/1.7.

Would be great to have your suggestion in the next release!

nicholas
Akeeba Staff
Manager
On second thought, I do have the metadata.xml file in there. It;s just that Joomla! won't hide the top-level menu type (Admin Tools) despite the fact that there are no views for that component available.

But still, we can't remove the Admin Tools entry from the menu table. This link is automatically created by the manifest XML file. The only way to not add the link= field in the menu table is to NOT create a back-end menu item which is more than useless, it's pointless.

All I can say is that Joomla! has a bug here. If there is a component with no front-end view accessible for menu item creation, it should not display it in the menu type dialog. This bug was fixed in Joomla! 1.7. So, there is nothing for me to fix. I consider this a Joomla! 1.5 bug which is solved as of Joomla! 1.7.0.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!