Topic-icon Want to add links in usermenu without hacking helper.php in modsclogin

Active Subscriptions:

None
Hi,

We are displaying Joomla menu in Sclogin module. We want to display few links in the same container of usermenu which will be based on the logged in user. Currenly the usermenu list is being generated from helper.php. So I want to know how can we add few links inside the usermenu container without hacking helper.php

Thanks!
The topic has been locked.
Support Specialist
You definitely shouldn't have to hack the helper.php file :)

The SCLogin user menu option uses the standard Joomla menu system. If you want some links for registered users, you should add them to the menu that you've created in the Menu system and selected to display in SCLogin. If a menu item is only for a specific user group or you're using some other way to target menu items to a user, the SCLogin module should do that automatically based on the menu system.

I hope that helps, but if you need anything else, please let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi,

Thank you for reply. But we cant add those links into menu as we wont be then able to check association with logged in user and decide which menu to show, also there could be lot of such links in future which we dont want to create manually. Hence we want to auto create those links for logged in user only and show those in addition to the links fetched from the menu selected in the module..

Hope the requirement is clear.
The topic has been locked.
Support Specialist
The requirement is clear. Unfortunately though, you'd need to make direct modifications to the SCLogin module (or any other menu module) to do what you're looking for. If you're trying to do something outside of how Joomla normally tries to do something, then it pretty much means you want to do custom code and implement it on your own. The SCLogin module isn't meant to be a 'custom menu module with tons of flexibility', it's supposed to be a login module with some extra features over the standard Joomla login module.

I hope that helps explain. I would really suggest investigating the Joomla menu system, ACL permission system and groups system to see if what you're doing can be fit within how Joomla expects things to be done. If so, it will make your life much easier as all extensions expect standard Joomla behavior for menus and other core features.

Thanks,
Alex
The topic has been locked.