Different User Profile Page Title

4 months 2 weeks ago #323118 by pastoweb
Different User Profile Page Title was created by pastoweb
Hi, on profile pages I want to display a User Profile Page Title different than the default formatted name (in my case, the company name), based on the subscription plan: individual members should display the personal name, company members the company name.
Is it possible?

I could create a custom tab to be displayed based on conditions, but the I'd have to duplicate also the company name field and ask people to enter it several times, for each position I need to display it
Any other solution?

Here a company profile page example:
formalms.org/cb-profile/elearnit.html?tab=31

Please Log in to join the conversation.

4 months 2 weeks ago #323120 by krileon
Replied by krileon on topic Different User Profile Page Title
Latest release of CB supports a Custom option for Name Format in CB > Configuration > General. The Custom option supports substitutions so you'd be able to use IF substitutions to condition it. Example as follows.

Name Format: Custom
Custom Name Format:
[cb:if cb_company!=""][cb_company][cb:else][name][/cb:else][/cb:if]

That should for example display [cb_company] if it has a value otherwise just show [name]. I'm not really sure how subscription plan comes into play here as that information has to come from somewhere.


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.

Please Log in to join the conversation.

4 months 2 weeks ago #323128 by pastoweb
Replied by pastoweb on topic Different User Profile Page Title
Thanks, interesting feature.
What would be the syntax to use the plan name as a condition?
Then something lik this should work:

[cb:if plan_name="Company"][cb_company][cb:else][name][/cb:else][/cb:if]

Please Log in to join the conversation.

4 months 2 weeks ago #323142 by krileon
Replied by krileon on topic Different User Profile Page Title
It doesn't support content plugins so you won't be able to use CBSubs substitutions there. It only supports the substitution usages shown in the below tutorial.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb


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.

Please Log in to join the conversation.

4 months 2 weeks ago #323155 by pastoweb
Replied by pastoweb on topic Different User Profile Page Title
Ok. Your solution with the custom format anyway is working fine. The only issue might be in some remote cases with individual members upgrading to company, filling their company name and then downgrading again... but that's really unlikely to happen
Thanks

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.433 seconds

Facebook Twitter LinkedIn