0

I am building a component in Joomla 3.3 to list courses and their respective sections, and provide an administrative interface in the back-end.

After my component is installed, or if I navigate to other administrative sections of Joomla, the menu items relating to my component seem to, uh, lose their titles. Rather than 'Course Listing' in the components menu, it will say com-courselist. Instead of 'Courses' in the sub menu item it will say 'com-coureslist-menu-courses', and the same problem for the 'sections' menu item as well.

When I click on any of these menu items, the titles then change to what they are intended to be - Course Listing, Courses, Sections. Afterward, clicking to any other admin area, for example, the article manager, causes these menu items to go back to how they were immediately after install (com-courselist, com-courselist-menu-courses, com-courselist-menu-sections).

This is where the menu items pointing to different views are defined (in my xml manifest, courselist.xml):

<!-- admin menu -->
    <menu link="option=com_courselist">COM_COURSELIST</menu>
    <submenu>
        <menu link="option=com_courselist&amp;view=courselist">COM_COURSELIST_MENU_COURSES</menu>
        <menu link="option=com_courselist&amp;view=sections">COM_COURSELIST_MENU_SECTIONS</menu>
    </submenu>

These language strings are defined in admin/language/en-GB/en-GB.com_courselist.ini

COM_COURSELIST_MENU="Course Listing"
COM_COURSELIST_MENU_COURSES="Courses"
COM_COURSELIST_MENU_SECTIONS="Sections"

menu item immediately after installation or from another administrative sections besides that of the component iteself

menu items as seen when inside my components administrative views

1

These language strings should be defined in admin/language/en-GB/en-GB.com_courselist.sys.ini

Developing a MVC Component/Adding language management

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.