Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: peppemania on October 24, 2012, 12:03:03
-
Hello, I have a problem with Module assignment only on the home page and other pages linked from the menu.
example: mod_ads (right position) assigned only on the home page and a few pages.
however appears in all pages that are not on the menu.
I tried to assign frontpage position, but it only works with home page. not with the other pages that I want to assign it.
any solution?
-
Which beta you have this issue with?
-
hi Stefan,
elxis 4 beta rev1327
The problem occurs with the modules assigned only in homepage.
The modules appear in all articles that do not have a link in the menu.
example:
module xxxx assigned to the right position (only in home page), appears to right position of each new article
-
Read this (https://forum.elxis.org/index.php?topic=7308.msg47221#msg47221)
-
the rev1358 does not work well for the modules assignment.
it is not possible to assign the module to a single page.
the modules assignment on category does not appear, but it appears on the all inside pages.
the assigned module on the homepage appears on all pages that have no links on menu.
it is possible to return to rev1327 for the assignment of the modules?
rev1327 only had the problem home page, solved with the custom front page and duplication of modules if necessary.
-
In Elxis 4.x menu items are just links. You have used (Elxis 2009.x) to assign modules on menu items with the Itemid. Now Itemid is gone and things work very different.
Elxis 4.x is not so accurate in assigning a module to a menu item, so new methods are required, and Elxis 4.x is full of these. What you want to do can be done in other ways.
To help those having similar problems I will try to make this assignment more accurate although I don't want to (as it adds extra database queries).
Please wait, I will reply back later.
-
Problem fixed!
Overwrite existing files with those I attach.
includes/libraries/elxis/menu.class.php
modules/mod_menu/mod_menu.php
The module assignment now works correct in all cases.
The highlight of clicked menu item(s) now works correct in all cases.
Important: In order for this fix to work correctly elxisURIs in menu items should contain the component name.
Example 1: content:famous-places/ instead of just famous-places/
Example 2: content:/ instead of an empty string for the site frontpage.
-
wow it works perfectly now, except for pages not in menu (example: autonomuous page or article without category menu and search result).
now im ready for live site.
sometimes I love you ;D
-
Pages ot in menu, as in Elxis 2009.x, get the Itemid of the frontpage item.
If you don't want to display a menu item for those create a hidden menu and add menu items to these pages there.