I am currently have the photo module on sidebar 1. Since I am working with overrides, - aliases are linked to the jomsocial homepage for each language. Now it appears, that I can only set the photo module to "all", but not to a particular item linked to the jomsocial toolbar. For example - lets say I only want the Photo module appearing on the " activity site ". Not of course on every side. I know it is actually very simple, but it my helps if you just log in to my site and check what it is.
Hi, Peter.
I know what you mean :) As I know your site quite well ;)
JomSocial toolbar is a menu in Joomla! but it's a bit different than other oridinary menu. it's used for INTERNAL communication within JomSocial component. It means that menu items in it will behave in different way. They don't have OWN menu item ID but inherit it from parent manu item - JomSocial home/frontpage menu item that is (should be) located outside JomSocial toolbar. So ALL menu items have ONE item ID... and if you assign module or template to that menu item ID ALL menu items will come with that module displayed.
Here you can read more:
documentation.jomsocial.com/wiki/Toolbar_Explained
I've made some research and came to conclusion that main menu items in JomSocial toolbar could have duplicated outside that menu this have own, unique menu item ID shared with the rest of child menu items. For example: if you create outside JomSocial toolbar menu item "Profile" it will have own menu item ID but child menu items like "Edit Profile" or "Change Profile Photo" will inherit that menu item ID. So now module could be assigned to parent element. certain module could be displayed in all profile related pages but not on e.g Photo pages.
In you race we have additional complication as you use TWO different languages. But duplicating main menu items like "Profile" (because you have two languages you'll need to have assign languages to menu items... thus you'll need to have separated menu items for each language). But then again toolbar will become crazy as it will use menu items with higher ID.
1. So one solution is to use built-in module positions:
documentation.jomsocial.com/wiki/Built-in_Module_Positions
but then modules will be displayed INSIDE JomSocial not aside line sidebar...
2. I think the best solution then will be to use php conditions for certain view or task (depends where you want to display module). Something like this:
<?php if ((JRequest::getCmd( 'view' )) == 'profile') { ?>
<jdoc:include type="modules" name="my-position-1" style="none" />
<?php } ?>
Thank you Michal. Actually I am very happy the way JomSocial Toolbar works in more then one language now. There is also the language for the Netherlands coming up. For now I think I leave it this way, because it works. It should not be to difficult to ad more languages since I have a pretty good structure which you gave me. The Photo Module my have to remove anyways. Depending on the commercial aspect of my site, I plan to run memberships ads for equestrian on sidebar 2,. Something like Facebook but of course only for equestrian. This would change the situation again, because commercial ads could run on more sites. But there still is the Preferences Site which needs full space without running anything on sidebar two. I will see how far I be able to come with my knowledge.
Do You have any Idea for a membership advertising module. Running ads for paying members.
Ok Michal - You did it again. Your Instruction gave me the solution. "js_side_top - " Module Edit - is the key to it. Ads could possible run on Sidebar 2 now. If you like check it. I understand the structure now. It don´t have to be all at sidebar 2 or 1. It works with in the jomsocial template structure itself - no php coding necessary. Thank you again very much. I guess you always have the ride solution.