How can I edit Joomla! menu? - joomla

I'm looking for a way to edit Joomla! menu or creating a custom menu for Joomla!(version 2.5), like add an element to each menu item.
I can edit modules from this path: root\templates\beez_20\html\modules.php
how can I edit menu source code ?

If you just want to edit the CSS, you could append a specific css class to your menu module in the Joomla! backend.
But if you want to add an element (i.e. change the code), you could for example just create your own module (http://docs.joomla.org/J2.5:Creating_a_simple_module/Developing_a_Basic_Module) and then "clone" the menu module (root/modules/mod_menu) by copying the contents to the respective files of your module.
Note that you would have to create a module package as explained in the link, then you'll be able to install it through the Joomla backend. When the custom menu module is installed, you can edit the way it looks by going to the folder root/modules/mod_yourmenuname/tmpl/default.php. Is this what you were looking for?

Related

Joomla - Category Blog Alternative Layout Not Being Applied

So I'm a little confused by Joomla's Alternative Layout overrides.
I'm using Joomla 3.3
I have read all Joomla 3.x documentation, and have followed many tutorials without any luck.
So here are my template files:
Promo is the name of the alternative layout which I would like to activate for one of my Category Pages.
So it appears as an alternative layout without a problem.
Then I've gone ahead and made the menu item:
However when I go on the page, it calls the blog.php override only and not the promo.php layout
What am I doing wrong here?
Where is your promo.xml file? You should have one in the same directory where you have your promo.php file. The promo.xml file should be a copy of the blog.xml file located under the public_html/components/com_content/views/category/tmpl folder. You will only need to change the line:
<layout title="COM_CONTENT_CATEGORY_VIEW_BLOG_TITLE" option="COM_CONTENT_CATEGORY_VIEW_BLOG_OPTION">
to
<layout title="promo" option="promo">
And then when you create a menu item, choose its type to be promo.
To expand on #itoctopus, there are two different things, an alternative layout and an alternate menu layout. If you make a direct menu link you must use the latter. For this you need the xml file, and at that point it will show up in your list of menu options. Alternative layouts are applied to items and the do not show up in the menu options. The menu always overrides the item. There are some additional options you can play around with.

How can I add PHP to a Joomla menu item?

Here's what I'm trying to do:
In Joomla 3.1, I'm using the K2 component to build a full content-driven news website.
All is well, but I just don't like the K2 Login module, and therein lies the rub. That module automatically generates two key links:
• Add Item
• My Page
I want to unpublish the login module and add both of these links to a standard Joomla menu. It's easy to add the "add item" link because it's essentially static.
But the "My Page" link is dynamic. I've found the PHP code that generates it:
<?php echo JText::_('My Page'); ?>
But I don't know how to make a plain old Joomla menu item -- as in, one that I add through the menu manager -- to generate that code.
Note: It's important that I be able to use the Joomla menu structure because I'm also using Joomla's access control to hide or show these buttons. Meaning, I've added a "contributor" usergroup, and I only want them to see these links.
Any bright ideas would be much appreciated! Thank you!
You should go to the template you are currently using, in their you create a html folder.
In that folder you create a mod_menu folder.
Than you got your Joomla root > modules > mod_menu.
And copy files which are inside and drop them in the html > mod_menu folder.
Now you can edit the mod_menu to your favors with a rewrite.
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Hope this helps you.

Joomla 3 - Use Box Plus outside of article content

I would like to use the boxplus-lightbox extension for Joomla (http://extensions.joomla.org/extensions/multimedia/multimedia-display/16555). Unfortunately, it can only be used in articles as far as I can see. Do you know if there's any chance to activate it outside of articles, e.g. in a module?
Thanks in advance,
enne
Its has a plugin feature - {boxplus}Link text{/boxplus}
So:
Try inserting it as a custom html module - {boxplus}Link text{/boxplus}
Alternatively use the article anywhere plugin: http://www.nonumber.nl/extensions/articlesanywhere - which enables you to insert articles into modules.
Or another ARTICLES EMBED extension:
http://extensions.joomla.org/extensions/news-display/articles-display/content-embed
I just created it using a custom module.
Using Custom HTML Module
In J3.1:
Go to: "Extensions > Module Manager"
Click "New"
Choose "Custom HTML"
Select Module Position
Under "Options" Tab: "Prepare Content" -> make sure it is Yes
Under "Custom" Tab paste:
{boxplus theme=lightsquare href=images/joomla_black.gif}Link text{/boxplus}
Save
Refresh page - if it shows only text then check step 5

joomla file upload module assign to menu

Module Name: Simple File Upload v1.3
Module Source: File Upload Module
Just today i got very clear clarity on this questions.
My questions is, With module we can set the positions only, we could not able to assign to menu directly in admin menus. but can call the module in article. but actual requirement is. i want to show the upload form in the admin area. so i want to create one menu in the admin menus, when user click this menu. appropriate upload form will be display.
How to achieve this.
To assign module to a menu,Go to extensions -> module manager, Then open your module Simple File Upload v1.3 and On the bottom left you will find Menu Assignment section select the menu there where you want to assign that module.
And hit save.
OR
You can also do this by menu manager also go menu manager under which menus where you want to assign that module Go to edit view and on the right under Module Assignment for this Menu Item click on the module name then popup will open and follow the instruction as described above.And save you are done .
Read more : How do you assign a module to specific pages?
Hope this will help.

menu link opens module under menu module - joomla 2.5

maybe it an easy solution for someone..I would like how can I set up an item in menu (positioned on right side of template), that when I click it, it opens/shows a module (news blog) under that menu(item) (in the same right position). Similar to click accordion just that menu item is in a menu module and a news blog is another module.
thank you.
In Joomla you can assign modules to specific menu items. THat means the module will appear when you click that item. You can assign a module to one page, all pages, specific pages you click or "all except" a list you select. Other than that I'm not sure what the question is, but I will say it's not a programming question.
In joomla module can also show in article,
You can create a article and link those article to specific menu.
And those article called a module like {loadmodule module_name}.
Also with module position like this {loadposition position_name}.

Resources