Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
JS Toolbar should pick Menu item ID when adding items to Navigation Menu
When adding menu items to Navigation Menu in JS Toolbar all items receive ID of main JomSocial menu item (in Main menu). ID should be of menu item that was added so we can have control over modules that will be displayed on those pages.
Proper IDs are saved in module data but link generation is not using those.
Temporary fix can be on \modules\mod_community_bar\tmpl\default.php line 89:
<li><a href="<?php echo CRoute::_($item->link); ?>"><?php echo JText::_($item->title); ?></a></li>
to look like:
<li><a href="<?php echo CRoute::_($item->link . '&Itemid=' . $item->id); ?>"><?php echo JText::_($item->title); ?></a></li>
JomSocial Toolbar is NOT as any other Joomla! menu. It's used as a internal navigation for JomSocial.
That is why all menu items get menu item ID of JomSocial frontpage.
This was mentioned many many times on forum :) And explained.
If you want to display modules on a specific pages then you have two options:
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you
Now it makes sense. Still, I do need those menu items to have their IDs since I need to display Joomla content on some pages and those need their modules to be present. Modification does the job :)
There is other option as well. You may create a hidden menu and create:
1. JomSocial frontpage menu item (it needs to be created FIRST)
2. Groups menu item
3. Events menu item
4. Photos menu item
5. Videos menu item
This way you'll give menu item IDs to those pages. All other pages will gave JS frontpage menu item ID.
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you