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
0 answers
13 views

Solidres Joomla 3 Logged in, select any Joomla menu item, erroneously returned to login page

Hi I'm a rank amateur with regard to site development experience, Last time I put one together was at least a decade ago, much has changed! Decided on Solidres for numerous reasons, not least they ...
Thai Motorcycle Tours - Miles's user avatar
0 votes
0 answers
28 views

PHP type error on creating admin menu item

When I try to create an admin menu item in Joomla 5 (I imagine the same will apply to Joomla 4), I get this error: An error has occurred. 0 strlen(): Argument #1 ($string) must be of type string, ...
Bruce Button's user avatar
0 votes
0 answers
24 views

Try to make ACY Mailing newsletter archive view look more like a blog

I am using ACY to create and send newsletters - I am using their "menu newsletter archive view" ([https://www.beeswaxcandleshop.com/home/newsletters/archive/listing.html]) - The page looks ...
Honeyflow's user avatar
0 votes
1 answer
62 views

My script doesn't work on joomla 4

I used this simple php gallery from a folder on my Joomla 3 site. Now I'm getting ready to do an update to Joomla 4 and I noticed that I have a problem with displaying images from the directory. if I ...
Midhat's user avatar
  • 109
1 vote
0 answers
16 views

J4 default page from CiviCRM extension not working

It seems that it is not possible to set a menu item from the CiviCRM extension for Joomla as the default page in J4. Or rather when the website is visited there is no content, while the menu item is ...
thoni56's user avatar
  • 277
0 votes
1 answer
215 views

How to add separators / dividers in Joomla 4 Custom Components (Sub-)Menu?

There are these nice loking seperators / dividers in the core content component's menu: I've tried already to add the following in my XML without success: <menu class="divider">sep&...
Marco's user avatar
  • 663
1 vote
1 answer
94 views

Joomla 4 Alias Menu loses original menu class

In J4, I have a menu item (in main menu) loading a single article and I've added a unique class via the menu Page Display >> Page Class. It has an alias of "commercial" and when used ...
Chris Paschen's user avatar
0 votes
1 answer
304 views

URL System Links not working

I don't know if this is a bug or if this is something new with Joomla 4, but any help would be greatly appreciated. In Joomla 2 and 3, I would create menu items of the URL System Links type that sent ...
chavab_1's user avatar
  • 195
0 votes
0 answers
29 views

Itemid not retrieved from modal

I have a regular way of returning to the menu item originated from by using the following in the controller of my component: $menu = Factory::getApplication()->getMenu()->getActive(); $...
Glenn Arkell's user avatar
0 votes
1 answer
170 views

Custom Component - Frontend Menu Item incorrect link

While creating my Custom Component i'm struggeling now on creating menu items for my views. The views are available via "/index.php?option=com_mycomponent&view=items" or "/index....
Marco's user avatar
  • 663
2 votes
2 answers
53 views

Custom admin menu creation - parent_id and level values are resetting to zero

I want to programmatically create some admin menu items for my component and I'm most of the way there, but I can't seem to set the hierarchy for them. I am wanting three menu items - one as the ...
Grant Hood's user avatar
1 vote
1 answer
315 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 ...
Glenn Arkell's user avatar
1 vote
1 answer
145 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, ...
Nidilap's user avatar
  • 13
1 vote
1 answer
38 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 ...
RustyJoomla's user avatar
  • 2,078
1 vote
1 answer
31 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 ...
hedera's user avatar
  • 43
0 votes
1 answer
72 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 ...
Laurent's user avatar
  • 23
1 vote
1 answer
39 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 ...
Eden Tournaments's user avatar
1 vote
1 answer
485 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", '...
user1616338's user avatar
1 vote
0 answers
42 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 ...
Daniel Andres's user avatar
1 vote
2 answers
53 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? ...
Xander's user avatar
  • 133
1 vote
1 answer
501 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/...
Bas van den Dikkenberg's user avatar
2 votes
2 answers
690 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 ...
Dom's user avatar
  • 512
0 votes
1 answer
129 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.
Karen-Ann's user avatar
  • 105
1 vote
1 answer
148 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 ...
essbaxter's user avatar
1 vote
2 answers
305 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 ...
jonboy's user avatar
  • 3,603
1 vote
1 answer
119 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 ...
Xander's user avatar
  • 133
1 vote
0 answers
177 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 ...
Wieger's user avatar
  • 253
1 vote
4 answers
274 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 ...
Muesli Flyer's 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 ...
William's user avatar
  • 299
1 vote
1 answer
142 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 ...
thednp's user avatar
  • 415
3 votes
1 answer
115 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/...
mickmackusa's user avatar
  • 4,791
0 votes
1 answer
62 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 ...
BruceW's user avatar
  • 101
1 vote
1 answer
70 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 ...
Lucio Crusca's user avatar
0 votes
1 answer
33 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 ...
no0ob's user avatar
  • 111
0 votes
2 answers
287 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 ...
user2293554's user avatar
5 votes
1 answer
193 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. ...
johnsgp's user avatar
  • 53
0 votes
1 answer
135 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#...
JohnSmith's user avatar
  • 153
1 vote
1 answer
68 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 ...
shenkwen's user avatar
  • 1,389
1 vote
1 answer
176 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 ...
TheLordOne's user avatar
2 votes
3 answers
309 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 ...
arsarc's user avatar
  • 133
1 vote
1 answer
73 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'); //...
Ronald Joseph's user avatar
0 votes
1 answer
34 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 ...
Silicomancer's user avatar
4 votes
1 answer
53 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 ...
Sloan Thrasher's user avatar
0 votes
1 answer
61 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 ...
Maverik Minett's user avatar
0 votes
1 answer
48 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 ...
Pavlo N's user avatar
  • 11
2 votes
2 answers
2k 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 ...
steveorg's user avatar
1 vote
1 answer
152 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 ...
isherwood's user avatar
  • 372
1 vote
2 answers
511 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'...
AnkIF's user avatar
  • 53
0 votes
1 answer
608 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 ...
Joey's user avatar
  • 3
0 votes
1 answer
889 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" ...
Chloe's user avatar
  • 293