Link from displayed users tab to another displayed users tab

1 year 8 months ago #330231 by liaskas
Hello

We have a field in users profile (TAB-A) that sows an icon (jpg) if another field, in a field in TAB-B, is filled.

We need a way to make a link from the jpg of the displayed users TAB-A to the displayed users TAB-B.

Is this possible and how?

Thank you in advance.

Please Log in to join the conversation.

1 year 8 months ago #330248 by krileon
Yup, you should be able to use the Layout feature for that. Under Parameters > Layout you can set "Profile Value Layout" as needed to output the [value] with a link around it. As for linking to specific tabs you'd use the below URL.

index.php?option=com_comprofiler&view=userprofile&tab=TAB_ID_HERE

Replace TAB_ID_HERE with the ID of your tab. If you want this to use a specific menu item then be sure to add &Itemid=MENU_ID to the URL as well.

If you don't expect this to be displayed outside of profile and you don't want it to do a page load you can also do this using the built in tab select behavior as follows.
<a href="#cbtabpaneTAB_ID_HERE" class="cbTabNavExternal" data-tab="TAB_ID_HERE">[value]</a>

Same as before be sure to replace TAB_ID_HERE with the actual ID of your tab. In this case replace it in both locations.


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.

Moderators: beatnantkrileon
Time to create page: 0.654 seconds

Facebook Twitter LinkedIn