Hello Everyone!
I am very new with Joomla, so i hope i will make myself clear.
Actually, i have modules on front page that I don't want to appear on the other pages. But whenever I try to select the page from Menu Assignment, it does not apply to the rest of the site.
Could someone please explain me what I am doing wrong?
Also, maybe important to mention, i have set up a new menu in French. So i have those two options available.
If I choose the first one, the module does not appear at all, so I guess this is the second I have to choose.
/Users/Rumas/Desktop/Capture d’écran 2014-06-03 à 22.04.20.png
Many Many thanks for your help!
Hi, Sonia.
Your "Accueil" menu item is a home/frontpage item for JomSocial.
The rest of JomSocial menu items are in JomSocial toolbar that is a special kind of Joomla! menu as it is used for internal navigation.
So ALL menu items within JomSocial toolbar DON'T have OWN menu item ID. They inherit it from main manu ite -> home/frontpage menu item from Main menu.
So if you assign a module to "Accueil" menu item then it will be assigned to certain menu item ID.... and as the rest of menu items related with JomSocial inherit this menu item ID (all have the same as "Accueil") module will be displayed also on that pages.
So solution for this is to use JomSocial built-in module positions:
documentation.jomsocial.com/wiki/Built-in_Module_Positions
so you could assign certain modules to certain pages.
Hello Michal!
First, i really thank you for your very complete answers!
Well, i follow your instructions, and it did work.
But now, my boxes are on the right side. I don't seem to have the possibility to display them in line.
So, could you please explain to me how using this built-in module position, I can follow the original template from Socialize?
Because, if I go back to Socialize> Module Positions, then the module js_side_frontpage does not appear. So i really don't understand how to arrange other modules on the Front Page.
Well, again, I sincerely thank you! ;-)
Sonia
Hi, Sonia.
ALL built in positions are in sidebar at right (if you have not RTL language). So you cant display them inline.
Also, those module positions are BUILT-IN in JomSocial thus will be not listed in Socialize template module positions.
But there is solution for it too, but It will require template customizations.
Please tell me (prepare a print screens too - with whole page context as it is important, so don't crop printscreens) where you want to have module positions and I'll provide you with solution how to create it.
I guess that is my lucky day!
So, you will find attached the ideal front page.
Maybe that not everything will be possible!
You will see that the jomsocial nav (with notifications, messages…) does not appear on Front Page. It would rather have it only appearing when logged in.
I would like the three modules to overlap a little bit the 'header' (or what i think might be the header), but if not possible, i can go without!
Again, muchas gracias, thank you, merci!
Hi, Sonia.
Ok, I remember that I already provided you with method that will hide main content area for guests:
www.jomsocial.com/forum/socialize-templa...a-in-frontpage#87564
So now you'll have to do opposite thing - display something only for users that are not logged in.
It will be in the same file as before: ROOT/templates/socialize/tpls/blocks/mainbody-js.php
But condition is a bit different:
<?php if ($user->id == 0) { ?>
<?php if ($user->id == 0) { ?>
<?php if ($this->countModules('position-8')) : ?>
<div id="something" class="something2">
<div class="something-div">
<jdoc:include type="modules" name="position-8" style="nonel" />
</div>
</div>
<?php endif; ?>
<?php } ?>
Nice!
I will follow these instructions.
However, I have a question, is it possible to assign a new template only for the front page that will fit more what I am looking for?
Many thanks for your answer!
Sonia
Hi, Sonia.
Hmm... there is. As you know template just like modules can be assign to menu item IDs... and JomSocial toolbar items inherit menu item ID from parent menu item -> JomSocial frontpage.
So you'll need to force other JomSocial toolbar menu items to inherit other IDs.
Then create in hidden menu (just create new menu and call it hidden) direct links to Profile, Friends, Photos, Videos, Groups and Events. Now this elements should have own menu item ID and dropdown menu items will inherit only parent menu item id...
This should allow you to assign template to frontpage... or any other main element in hidden menu.
Hello, Michal, how are you doing? this is me again;-)
OK, so i have tried the solution above to display the modules on Front page only to guests.
But for some reasons, i have the module appearing twice when not logged in. And once when logged in…
so i guess there is still something missing in what I am doing.
Here is the php file modified:
defined('_JEXEC') or die;
$user = JFactory::getUser();
?>
<?php if ($user->id == 0) { ?>
<?php if ($this->countModules('position-1')) : ?>
<div id="something" class="something2">
<div class="something-div">
<jdoc:include type="modules" name="position-1" style="nonel" />
</div>
</div>
<?php endif; ?>
<?php } ?>
All the rest of the file has been modified, only these line above //Layout configuration.
Thank you again!
Sonia
Hi, Sonia.
Then check Extensions -> Modules manager what modules are assigned to "position-1". Probably you have two modules assigned there.
Hi, Sonia.
We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.
Hi, Sonia.
Easy, no problem at all. I don't close the topic - just mark it as Resolved so it's moved from my TODO list.
You can change its state anytime you want - just make sure that thread status is "Pending Support". In other case I'll not see it on my list.