Skip to Content Skip to Menu

Link from displayed users tab to another displayed users tab

  • liaskas
  • liaskas
  • OFFLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
2 years 3 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 3 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.
Code:
<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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum