Admin Components menu and JComponentHelper

11 views
Skip to first unread message

jonnsl

unread,
Dec 28, 2009, 7:48:31 PM12/28/09
to Joomla! CMS Development
I made a patch to delete the table # __components because there is
already a table # __extensions.

This patch contains the following changes:

The com_config save the params into the #__extensions table;
JComponentHelper load one component at a time from the table
#__extensions;
In the Back-end the Module menu uses the table #__menu.

the only field that I needed to add in the #__menu table was the
`img`, which also can be used by the 3dr party to create menu modules
with icons.

http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_12_28.patch

Sam Moffatt

unread,
Dec 28, 2009, 8:18:25 PM12/28/09
to joomla-dev-cms
Have you patched the installer as well to prevent it putting the new
menu entries into the components table?

Sam Moffatt
http://pasamio.id.au

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

Andrew Eddie

unread,
Dec 29, 2009, 12:30:03 AM12/29/09
to joomla-...@googlegroups.com
We are still using jos_components for the backend menu no?

Regards
Andrew Eddie

--
Regards,
Andrew Eddie
http://www.theartofjoomla.com - the art of becoming a Joomla developer

Sam Moffatt

unread,
Dec 29, 2009, 1:30:58 AM12/29/09
to joomla-...@googlegroups.com
I think that is what this patch is going to remove, shift that menu
into the main table.

Sam Moffatt
http://pasamio.id.au

Hannes Papenberg

unread,
Dec 29, 2009, 6:27:48 AM12/29/09
to joomla-...@googlegroups.com
That sounds absolutely great. :-)

Maybe we could use an underscore prefix to signale, that this menu is
not editable via the normal menu manager? something like '_admin_menu'
for the backend menu...

I love this change. The only problem that I currently see is, that you
can't just clear the #__menu table anymore to start with a clean slate
with your menu...

Hannes

jonnsl

unread,
Dec 29, 2009, 1:00:52 PM12/29/09
to Joomla! CMS Development
http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_12_29.patch

Patch 1.1
- Correct bug when trying to load a component that doesn't exists
- Change the meny type to _adminmenu
- Add a Notice when trying to create a menu with the name _adminmenu
- Start modifing the installer adapter
- - Until Now a have done only the _removeAdminMenu function , I
doesn't test yet.

I have a small doubt: How the 3rd Party can through the installation
file insert menu items in the components menu?

On 29 dez, 09:27, Hannes Papenberg <hackwa...@googlemail.com> wrote:
> That sounds absolutely great. :-)
>
> Maybe we could use an underscore prefix to signale, that this menu is
> not editable via the normal menu manager? something like '_admin_menu'
> for the backend menu...
>
> I love this change. The only problem that I currently see is, that you
> can't just clear the #__menu table anymore to start with a clean slate
> with your menu...
>
> Hannes
>
> Am 29.12.2009 07:30, schrieb Sam Moffatt:
>
>
>
> > I think that is what this patch is going to remove, shift that menu
> > into the main table.
>
> > Sam Moffatt
> >http://pasamio.id.au
>

> > On Tue, Dec 29, 2009 at 3:30 PM, Andrew Eddie <mambob...@gmail.com> wrote:
>
> >> We are still using jos_components for the backend menu no?
>
> >> Regards
> >> Andrew Eddie
>

> >> On Tuesday, December 29, 2009, Sam Moffatt <pasa...@gmail.com> wrote:
>
> >>> Have you patched the installer as well to prevent it putting the new
> >>> menu entries into the components table?
>
> >>> Sam Moffatt
> >>>http://pasamio.id.au
>
> >>> On Tue, Dec 29, 2009 at 10:48 AM, jonnsl <jon...@hotmail.com> wrote:
>
> >>>> I made a patch to delete the table # __components because there is
> >>>> already a table # __extensions.
>
> >>>> This patch contains the following changes:
>
> >>>> The com_config save the params into the #__extensions table;
> >>>> JComponentHelper load one component at a time from the table
> >>>> #__extensions;
> >>>> In the Back-end the Module menu uses the table #__menu.
>
> >>>> the only field that I needed to add in the #__menu table was the
> >>>> `img`, which also can be used by the 3dr party to create menu modules
> >>>> with icons.
>

> >>>>http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_1...


>
> >>>> --
>
> >>>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> >>>> To post to this group, send an email to joomla-...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.

> >>>> For more options, visit this group athttp://groups.google.com/group/joomla-dev-cms?hl=en-GB.


>
> >>> --
>
> >>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> >>> To post to this group, send an email to joomla-...@googlegroups.com.
> >>> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.

> >>> For more options, visit this group athttp://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
> >> --
> >> Regards,
> >> Andrew Eddie
> >>http://www.theartofjoomla.com- the art of becoming a Joomla developer


>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> >> To post to this group, send an email to joomla-...@googlegroups.com.
> >> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.

> >> For more options, visit this group athttp://groups.google.com/group/joomla-dev-cms?hl=en-GB.

Andrea Tarr at Tarr Consulting

unread,
Dec 29, 2009, 1:06:07 PM12/29/09
to joomla-...@googlegroups.com
So does this mean that the admin menu items would have itemid's which could
at some point be used for module assignments in the backend?

Andrea Tarr
www.tarrconsulting.com

-----Original Message-----
From: joomla-...@googlegroups.com
[mailto:joomla-...@googlegroups.com] On Behalf Of jonnsl
Sent: Tuesday, December 29, 2009 1:01 PM
To: Joomla! CMS Development
Subject: Re: Admin Components menu and JComponentHelper

http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_12_29.pa

Hannes Papenberg

unread,
Dec 29, 2009, 1:49:24 PM12/29/09
to joomla-...@googlegroups.com
That would be a possibility, but I don't think that we will do this in 1.6.

About adding the entries during installation: Can you take a look at the
normal component installation and replace the code that adds the entries
in #__components with the code to add it to #__menu?

Hannes

Andrew Eddie

unread,
Dec 29, 2009, 5:41:27 PM12/29/09
to joomla-...@googlegroups.com
I think that's a bad idea to polute the extensions table with that
data. If you are going to change it, make a special admin menu to
handle it, but I don't see this is a priority to fix in 1.6.

Hannes Papenberg

unread,
Dec 29, 2009, 6:00:41 PM12/29/09
to joomla-...@googlegroups.com
This is what the patch does. I don't want more than one line per
extension in the #__extensions table either. This patch adds an
admin-menu to the #__menu table.

Hannes

jonnsl

unread,
Dec 29, 2009, 6:37:20 PM12/29/09
to Joomla! CMS Development
Exactly!

I forgot to mention that I also exclude the self population of
submenu.
patch 1.2
- Finally I finished the modification of the component adapter
installer
http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_12_29_1.2.patch

On 29 dez, 21:00, Hannes Papenberg <hackwa...@googlemail.com> wrote:
> This is what the patch does. I don't want more than one line per
> extension in the #__extensions table either. This patch adds an
> admin-menu to the #__menu table.
>
> Hannes
>
> Am 29.12.2009 23:41, schrieb Andrew Eddie:
>
>
>
> > I think that's a bad idea to polute the extensions table with that
> > data. If you are going to change it, make a special admin menu to
> > handle it, but I don't see this is a priority to fix in 1.6.
>
> > Regards
> > Andrew Eddie
>

> > On Tuesday, December 29, 2009, Sam Moffatt <pasa...@gmail.com> wrote:
>
> >> I think that is what this patch is going to remove, shift that menu
> >> into the main table.
>
> >> Sam Moffatt
> >>http://pasamio.id.au
>

> >> On Tue, Dec 29, 2009 at 3:30 PM, Andrew Eddie <mambob...@gmail.com> wrote:
>
> >>> We are still using jos_components for the backend menu no?
>
> >>> Regards
> >>> Andrew Eddie
>

> >>> On Tuesday, December 29, 2009, Sam Moffatt <pasa...@gmail.com> wrote:
>
> >>>> Have you patched the installer as well to prevent it putting the new
> >>>> menu entries into the components table?
>
> >>>> Sam Moffatt
> >>>>http://pasamio.id.au
>
> >>>> On Tue, Dec 29, 2009 at 10:48 AM, jonnsl <jon...@hotmail.com> wrote:
>
> >>>>> I made a patch to delete the table # __components because there is
> >>>>> already a table # __extensions.
>
> >>>>> This patch contains the following changes:
>
> >>>>> The com_config save the params into the #__extensions table;
> >>>>> JComponentHelper load one component at a time from the table
> >>>>> #__extensions;
> >>>>> In the Back-end the Module menu uses the table #__menu.
>
> >>>>> the only field that I needed to add in the #__menu table was the
> >>>>> `img`, which also can be used by the 3dr party to create menu modules
> >>>>> with icons.
>

> >>>>>http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_1...


>
> >>>>> --
>
> >>>>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> >>>>> To post to this group, send an email to joomla-...@googlegroups.com.
> >>>>> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.

> >>>>> For more options, visit this group athttp://groups.google.com/group/joomla-dev-cms?hl=en-GB.


>
> >>>> --
>
> >>>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> >>>> To post to this group, send an email to joomla-...@googlegroups.com.
> >>>> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.

> >>>> For more options, visit this group athttp://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
> >>> --
> >>> Regards,
> >>> Andrew Eddie
> >>>http://www.theartofjoomla.com- the art of becoming a Joomla developer


>
> >>> --
>
> >>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> >>> To post to this group, send an email to joomla-...@googlegroups.com.
> >>> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.

> >>> For more options, visit this group athttp://groups.google.com/group/joomla-dev-cms?hl=en-GB.

Hannes Papenberg

unread,
Jan 5, 2010, 4:51:37 PM1/5/10
to joomla-...@googlegroups.com
Commited the patch. :-) This is a nice one.

Hannes

> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
>
>
>

jonnathan

unread,
Jan 5, 2010, 5:39:57 PM1/5/10
to Joomla! CMS Development
I found some bugs, Here's the tracker :
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=19291

On 5 jan, 19:51, Hannes Papenberg <hackwa...@googlemail.com> wrote:
> Commited the patch. :-) This is a nice one.
>
> Hannes
>
> Am 30.12.2009 00:37, schrieb jonnsl:
>
>
>
> > Exactly!
>
> > I forgot to mention that I also exclude the self population of
> > submenu.
> > patch 1.2
> > - Finally I finished the modification of  the component adapter
> > installer

> >http://groups.google.com/group/joomla-dev-cms/web/jonnsl_patch_2009_1...

> >>>>>http://www.theartofjoomla.com-the art of becoming a Joomla developer

elin

unread,
Jan 7, 2010, 4:19:26 PM1/7/10
to Joomla! CMS Development
Hi,

This patch causes some routing problems in existing data (such as
sample data) because it changes the id numbers of various components.
(The links work but the URLS are wrong e.g. the Weblinks categories
has a Messaging segment instead of a Weblinks.) Could we please
reorder the core front end extensions so that their numbers match 1.5?

Thanks,

Elin

On Jan 5, 5:39 pm, jonnathan <jon...@hotmail.com> wrote:
> I found some bugs, Here's the tracker :http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEd...

> > >>>>>http://www.theartofjoomla.com-theart of becoming a Joomla developer

Christophe Demko

unread,
Jan 8, 2010, 4:57:38 AM1/8/10
to Joomla! CMS Development
Since some days, installed components don't appear in the admin
component menu. Is this patch the problem?

I don't know i

> > > >>>>>http://www.theartofjoomla.com-theartof becoming a Joomla developer

Christophe Demko

unread,
Jan 8, 2010, 4:58:29 AM1/8/10
to Joomla! CMS Development
I mean new third party installed components

> > > > >>>>>http://www.theartofjoomla.com-theartofbecoming a Joomla developer

elin

unread,
Jan 8, 2010, 9:04:21 PM1/8/10
to Joomla! CMS Development
Yes I would think so, I suspect that no existing 1.5 3rd party
components are going to be set up to install completey without
#__components table or to put anything in the #__menus table.

Elin

> > > > > >>>>>http://www.theartofjoomla.com-theartofbecominga Joomla developer

Reply all
Reply to author
Forward
0 new messages