how to create admin submenu in J2.5

1,521 views
Skip to first unread message

Rob Stocker

unread,
Feb 24, 2012, 9:22:46 AM2/24/12
to joomla-dev-general
Hi All,
I guess this is a silly question but I can't find anything on google. I have created a backend component and added two links. The links appear fine in the main menu component dropdown. But there is no submenu to quickly flick between views. In 1.5 this would be created automatically at the same time the main menu links were created. Am I missing something? I've scoured the tables to find some kind of entry or flag, but I'm not seeing it.

thanks

--
Rob & Lisa - EMC23
083 416 0618
in...@emc23.com
www.emc23.com

Mark Dexter

unread,
Feb 24, 2012, 7:21:30 PM2/24/12
to joomla-de...@googlegroups.com
Look at administrator/components/com_weblinks/controller.php and administrator/components/com_weblinks/helpers/weblinks.php. Good luck. Mark

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.

tiago

unread,
Mar 6, 2012, 10:41:37 AM3/6/12
to joomla-de...@googlegroups.com, in...@emc23.com
I've been having the same problem, I've tried to take a look at the files that Mark said and adapt them to my component by i had no success =/

Is there some documentation with examples where i can get help?

Thanks

Soheil Novinfard

unread,
Mar 6, 2012, 1:11:20 PM3/6/12
to Joomla! General Development
This code generate submenu in joomla 1.6 1.7 and 2.5:
JSubMenuHelper::addEntry('My Submenu','index.php?
option=com_yourcom&view=yourview' );

hope this is helpful.

Soheil Novinfard
www.egolt.com

tiago

unread,
Mar 7, 2012, 9:05:10 AM3/7/12
to joomla-de...@googlegroups.com, in...@emc23.com
tyvm problem solved :)

piotr_cz

unread,
Mar 8, 2012, 5:36:38 AM3/8/12
to Joomla! General Development
Joomla also uses javascript tabs (I guess JHtmlSliders behaviour) as
in Site > Global configuration & Site > System Information.
But to link those to menu, you'd have to update the class code, as all
tabs share same uri (hashtag doesn't change)

On Mar 7, 3:05 pm, tiago <phb.ti...@gmail.com> wrote:
> tyvm problem solved :)
>
>
>
>
>
>
>
>
Reply all
Reply to author
Forward
0 new messages