No Code Attached Yet
avatar christomagnifico
christomagnifico
6 May 2023

4.2.9 Cassiopeia template. I have assigned modules to my home page, only home page. These modules appear in my custom component view. I checked menu assignment in main menu also.

I assume there exists some sort of home page inheritence.

Other than using javascript to hide the modules, is there a better method?

avatar christomagnifico christomagnifico - open - 6 May 2023
avatar joomla-cms-bot joomla-cms-bot - change - 6 May 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 May 2023
avatar brianteeman
brianteeman - comment - 6 May 2023

From what you have said I am guessing that your component does NOT have a menu item. If it doesn't then it will use the itemid of the page that the link was on. The itemid should really be called the menuid and its the glue between a component and a module.

avatar christomagnifico
christomagnifico - comment - 6 May 2023

Brian thank you for speedy response. I have created my default.xml and edit.xml files within site/tmpl/someview, and created a menu item for each component view in my "main menu". Am I missing a further step? Module assignment are display NO in menu item options, and only pages selected:home in my module settings.

avatar brianteeman
brianteeman - comment - 6 May 2023

disable sef urls in global configuration and check the itemid in the url

avatar christomagnifico
christomagnifico - comment - 6 May 2023

With SEF off, if my url includes the Itemid, the page is working as expected. Perhaps I need to include &Itemid=123 in all of my links... then switch on SEF url's ?

avatar brianteeman
brianteeman - comment - 6 May 2023

no. that means (as far as I remember) that your router file is not correct.

avatar christomagnifico
christomagnifico - comment - 6 May 2023

Is a router file required in J4 component?

avatar brianteeman
brianteeman - comment - 6 May 2023

only if you want it to work

avatar chmst chmst - close - 9 May 2023
avatar chmst
chmst - comment - 9 May 2023

Closing this as it is not a Core issue.

@christomagnifico please ask questions in forum.joomla.org or stack exchange, or join us on mattermost - there is a extension developer channel. https://joomlacommunity.cloud.mattermost.com

avatar chmst chmst - change - 9 May 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-05-09 12:49:58
Closed_By chmst

Add a Comment

Login with GitHub to post a comment