B
B
boxxxer2014-03-23 13:35:51
Joomla
boxxxer, 2014-03-23 13:35:51

Joomla - how can I add a link to a component to a menu item through the admin panel?

There is a self-written component, I created a menu in the admin panel, now when you create a menu item and select a MENU TYPE, there should be an item with the name of the component, how can this be done?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Yakushev, 2014-03-23
@CanVas

there is no easy way to do it. except perhaps only in the template itself to check which user group the user has, and issue either one structure or another. those. code in php, and use one template, just with different styles, css, html and so on.
but there is an easier option, but with handles. Let's say the default template is one. you need to create duplicates of all menus and modules, and make them show only to registered users. and for guests, completely different menu items, to which a different template is attached.
those. there will be two menus, one will be for guests, and the first template will be displayed, the other menu will be for registered users, and the second template will be displayed.
Do you understand what I'm talking about? I can write an example

E
Eugene, 2014-03-23
@cyber-jet

There is no direct option. Only "crutch" - to show authorized and unauthorized different menus, to which you can attach different templates.

E
Eugene, 2014-03-23
@cyber-jet

Or enter a check in the template:
if ($user->id)

E
Eugene, 2014-03-23
@cyber-jet

If we are talking about a module, then create it in the module manager, the position and output can be omitted. And make a conclusion with the help of the material, i.e. create a menu item, bind to it the material in which the module will be displayed, to do this, write the output code in it:
[module id="Х"]where x is the module id, the number in the rightmost column of the module manager.
Or you can display a unique position in the material, and insert the module there:
{loadposition my_module_position}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question