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
1 vote
1 answer
59 views

Retrieve Active Menu link in Controller (frontend - Joomla4)

I'm trying to do a "quick" fix to J3 components so they work in J4 until I can re-code in the new structure ready for J5. Now that I've set the scene, I'm stumbling on getting the Menu URL ...
user avatar
1 vote
1 answer
65 views

Filter Categories in Tagged Items Menu Item Type

I'm making a menu to retrieve all articles that have certain tags and are from a certain category using "Tagged Items" menu item type, I managed to get all articles that have certain tags, ...
user avatar
  • 13
1 vote
1 answer
33 views

Show 'menuitem' field name in frontend of module

I have the following XML in my module params: <field name="menulink" type="menuitem" default="45" label="Select a menu item to show" description="Select ...
user avatar
  • 1,992
1 vote
1 answer
26 views

New menu is on wrong menu index page

I have a Joomla 3.9.24 site on which my mainmenu list has 4 pages. The mainmenu has 5 top-level menu entries (including Home) with variable numbers of submenus. I have some single-article menu items ...
user avatar
  • 43
0 votes
1 answer
57 views

Get the link to the item in the backend edit view of that item

Let me explain. I have created a custom component, when editing the element and saving it once, I would like to display next to the alias the sef frontend link to this element. Here is a screenshot to ...
user avatar
  • 23
1 vote
1 answer
35 views

Will deleting a menu option delete the page that it links to?

I have inherited our Bowling centre's website from my previous manager and have found quite a mess of various menus which we do not need any more. These menus refer to the annual tournament we ...
user avatar
1 vote
1 answer
222 views

Creating a menu using php

I'm trying to create a menu item in joomla 3.x using php I've been trying to get this code to work: $menuItem = array( 'menutype' => 'client-pages', 'title' => "new Menu", '...
user avatar
1 vote
0 answers
31 views

SchuWeb Sitemap includes Noindex Pages

I am using Joomla v3.9.19 along with SchuWeb Sitemaps (v3.1.0). Recently, I added some new pages (single article menu item) and added in menu entry the metadata noindex, nofollow, but SchuWeb Sitemaps ...
user avatar
0 votes
2 answers
39 views

Is it possible to change the parent of a menu item at certain widths?

I have a horizontal main menu in which the last item is a dropdown containing further items. Is it possible, as the screen width is reduced, to move items from the horizontal menu into the dropdown? ...
user avatar
  • 123
1 vote
1 answer
323 views

Custom field in menu item

I am trying to get a custom field type into the menu. I want this to be a dropdown which I poulate with some php code. Where the arrow points in want my dropdown field. So I created in /components/...
user avatar
2 votes
2 answers
466 views

Using JRoute to generate component SEF URL without a menu item id

Currently JRoute generates URLs for my component which look like this https://mysite.com/component/mycomponent/xxx, where I'm handling xxx in my component's router. Instead I'd like JRoute to generate ...
user avatar
  • 492
0 votes
1 answer
97 views

Menu item "tagged list": How to disable link on image and title?

How can I disable linked titles and the link on the image in a menu item tagged list? I am running Joomla 3.9.14.
user avatar
  • 105
1 vote
1 answer
112 views

Connecting module with com_ajax triggers request on menu item one level up

I've got a custom module which makes use of com_ajax to return values without refreshing the page. In my helper file I'm struggling to get the module parameters within the AJAX request and it looks ...
user avatar
1 vote
2 answers
195 views

Breadcrumbs Incorrect URL Path

Using Joomla 3.9.12 and SP Portfolio v1.7 I have a menu item called Locations, this is a menu item type SP Simple Portfolio » Items Whenever I visit example.com/locations I can see all my portfolio ...
user avatar
  • 3,501
1 vote
1 answer
66 views

How to override a link's href attribute in mod_menu?

Better title might be 'How to set the menuItem object 'link' property?' I've used menu overrides for a variety of purposes such as changing layout and styling etc but would now like to change the ...
user avatar
  • 123
1 vote
0 answers
134 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 ...
user avatar
  • 243
1 vote
4 answers
195 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 ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
  • 299
1 vote
1 answer
78 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 ...
user avatar
  • 395
3 votes
1 answer
108 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/...
user avatar
  • 4,448
0 votes
1 answer
56 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 ...
user avatar
  • 101
1 vote
1 answer
60 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 ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
  • 111
0 votes
2 answers
234 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 ...
user avatar
4 votes
1 answer
135 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. ...
user avatar
  • 43
0 votes
1 answer
109 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#...
user avatar
  • 153
1 vote
1 answer
56 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 ...
user avatar
  • 1,369
1 vote
1 answer
162 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 ...
user avatar
2 votes
3 answers
274 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 ...
user avatar
  • 133
1 vote
1 answer
68 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'); //...
user avatar
0 votes
1 answer
32 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 ...
user avatar
4 votes
1 answer
46 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 ...
user avatar
0 votes
1 answer
54 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 ...
user avatar
  • 133
0 votes
1 answer
41 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 ...
user avatar
  • 11
2 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
124 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 ...
user avatar
  • 362
1 vote
2 answers
381 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'...
user avatar
  • 53
0 votes
1 answer
275 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 ...
user avatar
  • 3
0 votes
1 answer
739 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" ...
user avatar
  • 293
1 vote
1 answer
49 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 ...
user avatar
  • 11
0 votes
1 answer
83 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 ...
user avatar
3 votes
2 answers
827 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" ...
user avatar
  • 293
2 votes
2 answers
106 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. ...
user avatar
1 vote
2 answers
310 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 ...
user avatar
  • 21
2 votes
0 answers
93 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 ...
user avatar
1 vote
1 answer
2k views

Active menu items on page scroll with fullpage.js

I'm using fullpage.js with joomla 3.7.5. I try to put class active on my menu item, when I scroll to the specific section. According to the docs, to let fullPage.js know about the menu, I need to ...
user avatar
  • 43
1 vote
1 answer
48 views

Creating a module/component that can be attached to a menu item with the Menu Item Type selector

I can create a component/module to fill main page area. I can even embed that in an article, and have that article attached to a Menu Item with the Menu Manager. However, I want my component to ...
user avatar
  • 133
-2 votes
1 answer
29 views

http://notifications.newsdoses.com/ I want to change the main color on hover

http://notifications.newsdoses.com/ I want to change the main color on hover from green to orange. I'm using jd _Atlanta template. Please help! I tried but unable to do that. ps latest joomla version.
user avatar
1 vote
1 answer
42 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 ...
user avatar
2 votes
1 answer
255 views

Is there an event for saving a menu item?

I'm trying to create a plugin that fires when a menu item is saved, but I'm having trouble finding an event to listen to. Sor far I have function onContentAfterSave() { ...
user avatar