Questions tagged [menu-item]

In Joomla! Menu Items are used as part of a menu, to create pages, that load a pre-defined type of content determined by the Menu Item Type. Those pages will be accessible by a static URL (menu-item alias), that we can specify while creating the menu item. Menu Items also hold layout and presentation information about the page (e.g. show/hide page titles, images, template options for a page, and more).

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

How to enter relative (to current page) URL as a menu item?

I would like to be able to enter relative URLs (relative to the current page URL). I've tried the menu type URL (nested within System Links) but when I enter e.g. first it becomes /first and when I ...
1
vote
1answer
423 views

Parent menu item not marked if sub menu item is active

As the title says, when one of sub menu items is active, parents of that item are not marked in any way. I'm using latest default Joomla and stock menu module without any overrides and mods. I ...
1
vote
2answers
147 views

How to link article to specific menu item?

I have two menu items, for example Menu1 and Menu2. Both are a Category Blog for same category Cat1, but Menu1 has some specified tags. Of course, some articles are present on both pages, and all url'...
0
votes
2answers
195 views

Module Removed The New Window Option of Link

I am using a SJ Flat menu module and some of my menu items have the Target windows set to New window with navigation. Unfortunately, the module removed that attribute and it has a new declaration of ...
0
votes
1answer
34 views

Article URL in Blog format adds suffix to menu separator

Main navigation items are separators and all active navigation are sub-level menu items. The Main menu works perfectly but, say, navigating to the blog all the active title links add a "-2" suffix to ...
0
votes
3answers
250 views

the menu item “home” is not taking “active class”

I am using helix3 template, the menu item "home" is not taking "active class" when I'm on the home page or when I click on it although the other menu items are working fine, i want it to take the ...
0
votes
1answer
23 views

Inactive control panel buttons

I moved my site to the other host and got a troubles in administration panel. Top menu is inactive, any button does not work. The other problem - I can not update my version 3.8.6 to 3.8.7. The ...
0
votes
1answer
45 views

Link to article with anchor

I have following site structure, 2 big anchored articles: Frontpage, url=/, menu item type=article About Us, url=index.html#about-us Contacts, url=index.html#contacts Article1, url=articles.html#...
0
votes
1answer
55 views

Display a menu item with Login requirement

I have made a Menu item and set its type to a 'Single Article'. I want that menu item to be displayed publically but login after clicking it to enter that article. When I have set the access level to ...
2
votes
2answers
540 views

How to remove menu parent from url?

The Joomla menu system includes the menu's parent name in the URL structure for sub-menu items as follows: https://www.mysite.com/parent/page I'd like to remove the parent directory from the url as ...
1
vote
1answer
311 views

Tagged items listing layout after clicking on a tag is displayed on homepage

I have installed a Cloud Tags module to display most used tags on my site. I would expect that when clicking on any of the Tags on the module, to see a page with a list layout that will show all ...
0
votes
0answers
14 views

Avoid that text Line “Search Results” appears when switching to another language?

I can't post my URL, so to simplify it, let's say: you have a website in three languages. in your main menu (one defined for each language, that all works well), you have one menutab, whose type is ...
3
votes
8answers
10k views

Working menu link now leads to 404 error page

I am working on a new website development with Joomla 3.1. The menu links were working fine before. However, suddenly one of the menu link now leads to the 404 error page. It happened once before and ...
1
vote
4answers
50 views

Create menu item type with filter options

I am building a component managing a set of job offers. Jobs have attributes including "employer". (I am extending a component created with Component Creator.) There is a front-end list view with ...
0
votes
0answers
27 views

“Temporarily Unavailable” message when a menu alias contains “contact”

One of the websites we manage, http://wesleyunited.ca , recently started having a problem with menu aliases containing "contact" as a substring: clicking the menu just brings up an empty page that ...
1
vote
1answer
38 views

Get parent menu item object in plugin

Problem Working with a code variation from this tutorial I'm trying to get the parent menu item instance object of a given item (currently editing) and it always returns null. /** * Prepare form ...
0
votes
2answers
63 views

Ordering Joomla menus in code

I am trying to order jos_menu items by the order in which they appear on the menu. In other words, I am using jdatabase sql queries to fetch menu objects then iterate through them to display them. I ...
0
votes
0answers
36 views

create menu item independently

I've created a Joomla 3 component that will add some menu items programmatically. I looked for how to do this and I found this old question / answer: https://stackoverflow.com/questions/12651075/...
6
votes
3answers
2k views

Programmatically Add Menu Item in Component

I am trying to create a component where the user can add a menu item to an existing Menu after creating the article (or selecting from a list of article). The closest I could come across to an example ...
1
vote
1answer
63 views

Some SimpleCRM menu items fail with error: Call to a member function getModel() on null

Immediately after upgrading my Joomla version from 3.9.1 to 3.9.4, I can no longer access certain Simple CRM submenus in the backend. The Company Codes link works properly. (http://localhost/jdem02/...
8
votes
3answers
7k views

How to show tagged items in category blog layout

I want to create a menu item for a tag that shows the articles as in category blog layout. I have tried with these menu item types: "Compact List of Tagged Items", "List of all tags" and "Tagged Items"...
1
vote
1answer
56 views

Menu links working only for logged in users

This is the site I'm talking about. If you click any menu item, you reach the correct page, but the page shows up garbled and the page URL is much longer than it should be, including categories names ...
11
votes
2answers
4k views

How to deal with Duplicated Content / URLs in Joomla?

I just found out a major SEO issue and while I have solved it for the time being; I am trying to figure out why it may have occurred in the first place and if there was mistake or is it something to ...
4
votes
5answers
2k views

Use HTML tag to bold only some words of a menu item

I am trying to use a HTML tag in my menu item in order to get a menu like this: Parent menu My fist submenu is in bold My second submenu is emphasized If I enter for instance the <strong> ...
0
votes
1answer
28 views

How to create 2 menus inside one component view

I've create a component called testComponent with a specific view called collection which needs to have 2 layouts the default.php and the list.php. I need to make both default and list as menu items ...
6
votes
3answers
2k views

List articles by author

I am looking for the simplest way to create a menu item that lists all articles by a specific author. Any help is appreciated. Elad.
4
votes
1answer
57 views

Can Smart Search index menu items or custom modules?

I am using Joomla v3.8.13 and have enabled Smart Search v3.0.0 which is indexing articles correctly. I've also installed ChronoForms by ChronoEngine to create a Contact Us form and some other forms. ...
1
vote
1answer
52 views

Joomla's homepage content displayed instead of the article page

I'm starting a new Joomla 3. x template and I'm finishing the front page index.php, now the problem is when I go to an article the same page is appears (the front-page) how can I create a custom page ...
0
votes
1answer
25 views

Add custom text to a contact list

I am Using Joomla 3.8. I added some contacts to the system and a menu. The menu contains a menu entry "Contacts" that lists all of the contacts of a certain category. This all works fine and was easy ...
1
vote
1answer
41 views

Has anyone tried setting homepage access level to registered?

I tried this on many of my websites, most of them are getting "redirect you too many times" error, and I compare server settings of those that work and don't, but couldn't find any major difference ...
0
votes
1answer
112 views

Navigation link to div id does not behave correctly

What I'm doing I am currently working on my Menu. I have one Menu-Item which links to a <div> that I have given an <div id="foo"> I link to this id by using the external url option with ...
3
votes
2answers
494 views

How do I set the Home menu item to a URL like /?

I have Joomla behind a reverse proxy. I want the Home menu item to point to /, not the fully qualified domain name that it is running on. How do I do that? I tried changing the Home "Menu Item Type" ...
2
votes
3answers
103 views

Hiding a Menu item with PHP in Sourcer in Joomla 3.8.1

I have a menu Item, and I added a custom css class so I could modify it like so: In Firefox's F12 developer tool, when I look up testphpmenuclass I find it just fine here: So I create a Custom ...
1
vote
1answer
53 views

How to display submenus in customized Joomla menu?

I want add schema in my Joomla menu. My code: $menu = JFactory::getApplication()->getMenu(); // Get menu items - array with menu items $items = $menu->getItems('menutype', 'mainmenu'); //...
2
votes
1answer
4k views

Get menu item by ID in Joomla 3

How do I get a menu item by ID in Joomla 3? While converting a site from Joomla 1.5 to Joomla 3, I encountered this code $mainframe = JFactory::getApplication(); $menu = $mainframe->getMenu('...
3
votes
1answer
32 views

How is the relationship between template styles and menus stored in Joomla 3.x?

I'm working on a tool that imports content for a new language. As part of that process, I'm creating a copy of a template style specific to the new language. After making a copy of the template style ...
0
votes
1answer
35 views

Joomla menu item has “com-akeeba” embedded in the url

I am adding a new menu item to my Joomla 2.5 site (can't upgrade to Joomla! 3 due to old version of PHP). I am adding the menu item "Download" at the top level of the main menu. The url ends up being ...
1
vote
1answer
57 views

Why does one menu item have a Hidden tag?

One of my menu items has a hidden tag on it. I don't recall seeing a setting or field for that. The menu item shows up on the site as expected. Why is it there and how might I have inadvertently ...
0
votes
1answer
344 views

How do I add custom HTML into a menu?

How do I add custom HTML into a menu? I wish to add this code as a menu item. <form action="/your-server-side-code" method="POST"> <script src="https://checkout.stripe.com/checkout.js" ...
1
vote
1answer
35 views

For menu item other than article - won't show page header H1

When I have menu items (other than articles) and Page Display -> Show Page Heading = YES Page Display -> Page Heading = BlaBlaBla.... I do not see any Page Header. This works only if the ...
2
votes
2answers
59 views

Different menu modules in different views of the same component from a single menu item

I wrote a component with two views, the main one is a listing (which I set as the home page i.e. https://example.com/ ) the other a detail page (which is only accessible through the main view i.e. ...
8
votes
6answers
2k views

How can I create a menu item on a different subdomain?

I want to create a menu-structure like this in Joomla 2.5: Root (www.example.com) About (www.example.com/about) Site a (a.example.com) Site b (b.example.com) Is it possible to create menu items ...
1
vote
1answer
571 views

Duplicate Menu Item Alias in Joomla 3.6.5

We upgraded our Joomla sites from 3.4.8 to 3.6.5 a while ago and it looks like the default behavior on how the alias for Menu Item Type [Menu Item Alias] is generated has changed. And this is either a ...
1
vote
1answer
98 views

Remove Link that is not in menu

I have a website that can be accessed by an unknown link under the website. For example there is an /unrelated-link under my domain and it can access the website. To illustrate: www.domain.com/...
1
vote
1answer
38 views

Decorate Menu Option

I have a component that adds a menu option ("Connect Daily Calendar") to the Joomla Components menu. What I would like to do is under certain circumstances "decorate" the menu option's text. For ...
1
vote
2answers
188 views

Unpublished menu item changes do not appear on the front end, while all other changes do!

In admin, I click on option "Menu" and unpublish a menu item, I get the message "successfully unpublished." The little red dot appears to the left of the item title. Clicking on the menu title in the ...
1
vote
2answers
302 views

Set Prefered Template with parent:display()?

I have a site that uses 2 template styles for 2 different domain names running on the same Joomla installation. (Both have the same root template.) I'm creating a custom component and a specific task ...
2
votes
0answers
79 views

Joomla 3.8.1 Neither Alternative Menu Item Nor Layout Reflects on Front End

Within mytemplate, I created an alternative menu and an alternative layout for the com_content articles view, and neither reflects on the front end. For com_content, in my template, I created the ...
0
votes
2answers
268 views

Get the number of menu elements? (Parents)

I want to write a new Joomla template. How can I obtain the number of parent elements in my menu? So far i tried this: $app = JFactory::getApplication(); $menu = $app->getMenu(); $menu_items = $...
2
votes
2answers
170 views

Set module assignment at menu creation

I have a component which creates content pages for custom entities. I have an xml which allows to set those pages as menu items of that entity type. I have 1 module that I always want to display on ...