20

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 just create it in the menu manager, so it's never visible as a true menu to the end user. Since Joomla sees this as a real menu (even though it's not visible),...


14

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 1. Why the Articles are being displayed under the same itemid First of all, this is not the problem why you are getting duplicate urls. The articles are using ...


11

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 Users > Login Form. Set "Access" to "Guest" Click "Save & New". Guest access will make it so that it only appears to non-logged-in users. If for some reason ...


10

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 approach to solve this? In the menu item options, you can set a "Link CSS Style" in the "Link Type" tab. Add there a CSS class and apply the formatting to this ...


10

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 JMenuSite Object $active = $menu->getActive(); // Load the Active Menu Item as an stdClass Object The $active is an object of the current menu item. ...


9

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 URL The default HTML output of the menu item is a link. <li class="item-120"><a href="#">External URL menu item</a></li> This is ...


8

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 settings -> Page Display. Actually the same applies, for every page of almost every front-end component, that you can create pages with their menu items. So, you ...


8

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 complex but it should be easy. Note : I'm using Joomla 3.4.4 and template protostar while creating this tutorial First, copy this files : [root]/components/...


7

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.


6

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 developer, therefore it is bound to do the job well. Option 2: You could develop a small plugin and targets the menu items and replaces [b] with a <strong&...


6

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() How to let menu item execute Javascript in Joomla 3.2?


6

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 menu items that way. So if your menu item is say class 155 it would likely appear in the li line as: <li class="active item155"> So then, again, ...


5

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'); //change the field name to whatever you have $app = JFactory::getApplication(); $menu = $app->getMenu(); $link = $menu->getItem($itemid)->link; ...


5

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, contentType : "application/json; charset=utf-8", type : 'get', cache : false, success : function(data) { successFunction(...


5

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 (not into module positions, though you could also do that). Then you can stick whatever you want on the page, including a module that lists all the categories ...


5

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 in an article which belong to category B or C. Then, you can order your articles.


5

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 reference here is an example in the prepareTable of a model. $menuTable = JTableNested::getInstance('Menu'); // which menu you want to add to - $menutype = '...


5

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 the grey star (or setting "Default Page" to "Yes"). This will remove the star from the other menu item automatically. Update: According to your screenshot (and as @Igor ...


5

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"> <message>mycomponent message</message> </layout> <fields name="request"> <fieldset name="request"> <...


5

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 $menu_items = $menu->getItems('menutype', 'mainmenu'); // This is to get the specific menu item by menu item Id $itemId; $item = $menu->getItem($itemId); ...


5

This should work just fine. You do however need to ensure you set the Menu Item Type to External URL. See the screenshots below:


4

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 documentation If you are looking for more complex configurations, Joomla MultiSites extensions allows you to run many joomla sites, from one installation, with ...


4

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 are trying to do) as well as templates.


4

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\YOURTEMPLATE\html\mod_menu\default_url.php. Copy the following contents to the file: default_url.php <?php /** * @package Joomla.Site * @subpackage ...


4

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 override for mod_menu. Read more on template overrides in the documentation: How to override the output from the Joomla! core.


4

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 are going to have further similar issues with any article of your Main top category, as they might use the itemid of your home page now, instead of the category's ...


4

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 logged in users. Create a new 'Guest' group; Create a Guest Group in the User Manager Add a new Guest Viewing Access Level Change the default guest group ...


4

back in time I have suggested the modals plugin by Nonumber in a same question question: How can I make a modal menu item?. I Haven't tried recently, but I guess you could give your menu item a specific class and have modals plugin open this class in modal easily. From NoNumbers Modal Plugin Documentation: Open menu items in modals To make a menu item ...


4

The External URL menu item also has an XML file (like all backend forms in Joomla). You can find it inside: administrator/components/com_menus/models/forms/item_url.xml So inside this file (or the corresponding override for it), you could add something like (within the <fields> </fields>: <fieldset name="custom" label="custom"> <...


4

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->title); ?> On your front end you should now have a title formatted as Menu Title - Article Title


Only top voted, non community-wiki answers of a minimum length are eligible