Elxis CMS Forum
Support => General => Topic started by: seadhna on October 16, 2025, 16:37:39
-
Hi there,
I'm trying to apply a module to the top of a specific tag page, e.g: www.example.org/tags/one+two
It doesn't work.
If I try to apply a module to a ONE-WORD tag, it works, e.g.: www.example.org/tags/one
but how do I format a two-word tag in a menu link? space is not permitted and plus symbol doesn't work.
-
Hello,
Find the module position where the module will be placed.
Try create a new menu item on a menu collection where it will point the url: www.example.org/tags/one+two (http://www.example.org/tags/one+two)
Finally visit the module's assignment tab of this module and select the menu item you've created above.
-
Yes, this is what I did, but the module does not appear on the front-end. If I make a menu item: content:tags/one and apply a module to that menu item, I can see the module on the front-end, but if I then edit the menu item to be: content:tags/one+two, the module disappears on the tag page.
-
Edit your template and place the following code on the spot you want to display the module (I give you 3 options).
A. If you want to load a modules position use this:
if (eFactory::getURI()->getElxisUri() == 'tags/elxis cms') {
if ($eDoc->countModules('myposition') > 0) {
$eDoc->modules('myposition');
}
}
Replace "elxis cms" with your tag. Replace "myposition" with your module position.
B. If you want to load a specific module regardless the template position by using module name:
if (eFactory::getURI()->getElxisUri() == 'tags/elxis cms') {
$eDoc->module('mod_something');
}
Replace "elxis cms" with your tag. Replace "mod_something" with your module's name. Tip: Set the module to position "hidden"
C. If you want to load a specific instance of a module in case you have multiple copies of it (for example mod_content), use the module's ID instead:
if (eFactory::getURI()->getElxisUri() == 'tags/elxis cms') {
$eDoc->module(34);
}
Replace "elxis cms" with your tag. Replace "34" with your module's ID. Tip: Set the module to position "hidden"
If you want to load the position or the module without parent DIV element use modules('myposition', 'none') or module('mod_something', 'none') or module(34, 'none') instead.