Advertisement

Putting a module in a menu Topic is solved

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
mabarraclough
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Oct 26, 2022 10:22 pm

Putting a module in a menu

Post by mabarraclough » Tue Jun 13, 2023 9:15 pm

I am using Cassiopeia and want to be able to put a module as a menu item. There is a great Joomlashack article for Joomla 3 for doing this with a search module, but trying to do it on Joomla 4 does not seem to wotk. Any pointers?

Advertisement
User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 18246
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Putting a module in a menu

Post by toivo » Tue Jun 13, 2023 9:40 pm

Do you mean this article: How to Display a Search Module in a Joomla Menu?

What happens when you try the same method in Joomla 4?
Toivo Talikka, Global Moderator

mabarraclough
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Oct 26, 2022 10:22 pm

Re: Putting a module in a menu

Post by mabarraclough » Tue Jun 13, 2023 10:22 pm

Yes - that is the article and I had that working in J3. However, with J4 all I seem to get is the separator and not the module.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 18246
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Putting a module in a menu

Post by toivo » Tue Jun 13, 2023 11:27 pm

The JoomlaShack article was published before Joomla 4 was released and there is only a Joomla 3 version of Shack Search. We cannot expect the methods used in the article to work in Joomla 4.

Just tested the tutorial in Joomla 4.3.3-dev using the free version of Modules Anywhere, updated last week, and the Smart Search module. Selected System Links - Separator as the Menu Item Type entered the following string as Title of the menu item, different from the article but consistent with Modules Anywhere:

Code: Select all

{module id="122"}
The following error message is displayed at the front end by Web Asset Manager at ROOT\libraries\src\WebAsset\WebAssetManager.php:259
0 WebAssetManager is locked, you came late
Toivo Talikka, Global Moderator

Jaxson
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Mar 24, 2023 4:14 pm

Re: Putting a module in a menu

Post by Jaxson » Thu Jun 15, 2023 3:24 am

Put your module in an article, then create a new menu item for single article.

get this https://extensions.joomla.org/extension ... -anywhere/

mabarraclough
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Oct 26, 2022 10:22 pm

Re: Putting a module in a menu

Post by mabarraclough » Sun Jun 25, 2023 11:01 am

Thank you to everyone who has responded. In the end I used Brian Teeman's Login/Logout plugin in conjunction with EngageBox to get what I wanted.

Michael Barraclough

Advertisement

Locked

Return to “General Questions/New to Joomla! 4.x”