Problem is that Registered persons ( Doctors in our case ) don't find a great interest in discovering these modules when they want to check the other doctors's profile.
Thank for giving me ideas
Vincent
SereniTeam
Last edit: 7 years 10 months ago by krileon. Reason: Added [#6392] tag to subject
You're wanting to assign a module to a specific profile? That's not possible at this time. The change to allow this is relatively simple, but the problem with making such a change is it causes a query per profile URL when trying to find its Itemid. If the page has 20 different profile URLs that's 20+ additional queries vs 1. So this won't be implemented until we rework how we grab Itemid as it needs to be more optimized. I've added a feature ticket as follows regarding this.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
To be more precise I'd like to assign a specific module not in relation with a specific profile but in relation with the group they belong. Registered vs Visitors
On one side Visitors may consult the registered doctor's profile close from their home. On the second one doctor may consults colleague's profil from their proper environnement
So I would like to assign different module in function of their group
To assign a module to a specific group you'd need to use the access parameter of the module, but that's based off the viewing user and not the displayed user. There is no functionality in Joomla for what you're wanting and the best I can suggest is use a CB Content Module then an IF substitution surrounding a module include usage. Example as follows.
View Access Level usage (example is testing for Public view access level):
[cb:if user="#displayed" viewaccesslevel includes "1"]{loadmodule 1}[/cb:if]
Usergroup usage (example is testing for Registered usergroup):
[cb:if user="#displayed" usergroup includes "2"]{loadmodule 1}[/cb:if]
Note for the above to work CB Content Bot needs to be have content processing parameter enabled. See the below regarding substitutions and how to load modules using content.prepare usage.
The above should display the module with an id of 1 when the displayed profile meets the specified condition.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.