20
votes
Accepted
How can I control the module display on pages with no menu item?
Solution 1 : hidden menu
If your pages also need pretty sef urls, you can make a hidden menu and link those articles in the hidden menu. A hidden menu means that you don't create a module for it, you ...
15
votes
Accepted
How to deal with Duplicated Content / URLs in Joomla?
TOC of this answer:
Content under same Item Id
How Duplicate content is created / Dynamic Pages / URLs
SEO perspective
Dealing with Duplicate content in Joomla
References and links
...
12
votes
Accepted
How to get the alias or title of the active menu item?
To get the data of the active (current) menu item, use the following code:
$app = JFactory::getApplication(); // Access the Application Object
$menu = $app->getMenu(); // Load the ...
11
votes
Accepted
How to show tagged items in category blog layout
Since this problem seems has been already asked several times and there is still no good answer for that, I'd like to try to provide my solution from the template override side. The steps are quite ...
11
votes
Accepted
Change Login to Logout
The Good Folks at OSTraining just published this nice Tutorial:
Step #1. Create the Login link
Go to Menus > your menu > Add New Menu Item
Enter a Menu Title.
Select the Menu Item Type.
Choose ...
10
votes
How to change the title tag?
When you are creating "static" pages with a single article menu item, the page will get its title from the menu item.
At this point you have an option to override the page title, in the Menu Item ...
10
votes
Use HTML tag to bold only some words of a menu item
You could use ReReplacer from NoNumber (http://www.nonumber.nl/extensions/rereplacer) to replace such things on each pageload. However I would not recommend it in this case.
May I suggest a different ...
9
votes
Accepted
Menu item without link
The main difference is how the HTML is rendered. Thus it depends on the template what the menu items look like. This is how the default Protostar template will display the different options:
External ...
8
votes
How can I control the module display on pages with no menu item?
You can't do it with default Joomla. Only by menu item.
Take a look at advanced module manager by RegularLabs which gives you more assignment options.
8
votes
Accepted
Get menu item by ID in Joomla 3
Not a big difference so far for what you are after...
$mainframe = JFactory::getApplication();
$menu = $mainframe->getMenu();
// Use this if you want to get all menu items from a certain menu
$...
6
votes
Accepted
Use HTML tag to bold only some words of a menu item
You have a few options here.
Option 1 would be to do what @Bakual has recommended. I've never tried using ReReplacer but the extension is developed and maintained by a very popular and well praised ...
6
votes
Accepted
Unable to create external link to javascript:void();
It was actually a bug that it worked (or to be more specific a security issue). The current behaviour is correct.
References:
Menu item type of External URL can not be saved with javascript:void()
...
6
votes
Add html in menu title field
If your template supports it, you should have numeric class ids for each menu item. If you have that, or if you can add that to your template/menu, it's probably safer to just use CSS and style those ...
6
votes
Accepted
Programmatically Add Menu Item in Component
firstly - menu items are not put into the assets table, so this question is about a non-existent problem. The link provided in the question gives the correct answer for joom 2.5 and 3.x. but for ...
5
votes
Accepted
Get full link from menu item field type
To get the ID which I assume you know already, you can use the following:
$itemid = $params->get('field_name');
To get the URL based on the ID, try this:
$itemid = $params->get('field_name'); ...
5
votes
Accepted
Ajax call to component from menu item
I'm assuming your using JQuery. If your using Mootools let me know, and I'll update this.
Your AJAX call can look something like this:
$.ajax({
url : urlToSend,
...
5
votes
Accepted
Multiple categories linked to menu item
Instead of trying to do nested categories you might want to just make a single article and link to that. Then use loadposition (or NoNumber modules anywhere) and just embed some modules INTO the page (...
5
votes
Multiple categories linked to menu item
You can link to a category which has two child category (red and blue in your example).
Your Menu links to category A which contains category b (blue) and category C (red).
You can put your slider ...
5
votes
Default menu item undo
You can't "unset" the default page. As you mention, Joomla requires at least one menu item to be set as default.
The solution is to set any other menu item as the default page by clicking ...
5
votes
Accepted
How do I get a menu item to send a parameter to a component?
The solution I went with was to add the parameter (id) to the view's default.xml:
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="mycomponent">
<...
5
votes
Accepted
Joomla 3 - use article title as browser Page title with the menu item title
Here is the simple answer for you.
<?php
$menu = JSite::getMenu()->getActive();
//SET THE PAGE TITLE
$doc= JFactory::getDocument();
$doc->setTitle($menu->title.' - '.$this->item-&...
5
votes
Accepted
External link menu item with tell or callto
This should work just fine. You do however need to ensure you set the Menu Item Type to External URL.
See the screenshots below:
5
votes
Accepted
How is the relationship between template styles and menus stored in Joomla 3.x?
template_style_id column in #__menu table.
4
votes
Accepted
How can I create a menu item on a different subdomain?
I haven't try it, but Artio JoomSef claims to provide such functionality.
You can specify sections of your website to be used for different subdomains.
It might be worthy to check it.
Artio JoomSEF ...
4
votes
How can I control the module display on pages with no menu item?
To get around issues like this, I normally create a 'hidden' menu which is not placed anywhere on the site. By doing so, I can specify the URL of specific pages and can apply modules to them (as you ...
4
votes
Accepted
Module as menu item
Here's one alternative to load the search module in your menu. It requires a couple of simple steps:
1. Override your mod_menu module
Create an override in your templates folder \templates\...
4
votes
Add html in menu title field
No, you don't need to add HTML to a menu item. Sometimes when Joomla removes stuff for you is because you should not do it like that (even if it was much simpler).
What you need is a template ...
4
votes
Programmatically Add Menu Item in Component
Not really a solution, but an idea:
I recently learned about Kazaam!, a plugin that creates a menu based on your category- and article structure.
As the website states, All code is open source, and ...
4
votes
Accepted
Why does Category View use Home Page Itemid when displaying the articles?
It considers that you have already created a menu item - your current category list menu item- which becomes an "authoritative" itemid for the content you are linking.
It is also possible that you ...
4
votes
Change menu item title according to login status
If I am understanding your question you want to hide/change the menu item depending on whether or not a person is logged in or not?
OK this is how I managed to how to hide content from guest users or ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
menu-item × 166joomla-3.x × 63
menu × 38
url × 12
component × 11
menu-parameters × 11
templates × 9
tags × 8
submenu × 8
module × 7
custom-component × 7
seo × 7
php × 6
articles × 6
joomla-3.3.x × 6
development × 5
joomla-3.4 × 5
layout × 5
joomla-2.5 × 4
joomla-3.5 × 4
com-content × 4
content × 4
weblinks × 4
alias × 4
plugin × 3