2

I'm trying to change the text content of the 'menu item group' name in the Admin backend for my component:

Joomla 3.x menu item selector

You an see in this image it's set to milocvs (the component I'm building is called com_milocvs).

What JText constant do I need to set, and where (.sys.ini or .ini), to change this to be something nicer (e.g. Milo CVS)? I've set the COM_MILOCVS in both ...sys.ini and ...ini and having looked at the other stock components I can't see anywhere else this would be set.

  • If the answer below have solved your issue, then consider to accept it as the right one. – FFrewin Aug 10 '14 at 12:33
2

The menutypes view gets the components names from the name column of the extensions table. From your screenshot I can see that in the database the name of your component is given as milocvs, instead of the com_milocvs. That's why the language constant cannot work. As for the rest, if you fix the name of the component, a lang constant at the sys.ini file will work for this.

  • Awesome, thanks - I can see this in MySQL. How can I fix the name of the component? At what point is the name added to the extensions table? Is there a best practice here - in my manifest file I have <extension...><name>Milo CVS</name>...</extension> – codinghands Jul 26 '14 at 16:19
  • How have you installed it currently? – FFrewin Jul 26 '14 at 16:37
  • Packaged up into zip with manifest file, through the web uploader, method="upgrade" – codinghands Jul 26 '14 at 16:39
  • hmmm, usually that would be the name field in the XML file. – FFrewin Jul 26 '14 at 17:25
  • Yeah - did a clean install as well on a site that had never seen the component, still the same problem... – codinghands Aug 2 '14 at 19:49

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.