Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
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

6 years 8 months ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

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>

6 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Please read our JS toolbar explanation.. :)
documentation.jomsocial.com/wiki/Toolbar_Explained

thank you!

6 years 8 months ago
Licenses:

HI, Vladimir.

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:

1. Use built-in module positions: documentation.jomsocial.com/wiki/Built-in_Module_Positions
2. Or use Advanced Module Manager 3rd party extension: extensions.joomla.org/extension/advanced-module-manager/
It allows to assign modules to certain URL


- 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
The following user(s) said Thank You: Vladimir
6 years 8 months ago
  • Vladimir's Avatar
    Topic Author
  • Vladimir
  • Offline
  • Junior Boarder
  • Posts: 283
  • Thank you received: 40
Licenses:
JomSocial Active

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 :)

6 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

I suggest you setup the hidden menu, and on jomsocial toolbar you put the external URL to that hidden menu URL.. this is just a trick ;)

cheers!

6 years 8 months ago
Licenses:

Vladimir.

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
The following user(s) said Thank You: Vladimir
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW