Skip to Content Skip to Menu

Link tab with a button in a module.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
6 years 2 weeks ago #307785 by chanteur94
Link tab with a button in a module. was created by chanteur94
Hi

I create a few tabs on a profil. One of them is for example 'Project' (tab_id n°33)
When I have my mouse over the name of this tab i can see the link www.mywebsite.com/cb-profile/profile-id-name&tab=33#cbtabpane33
and if I clic, I open my Project tab

I create a button with the same link and when i have my mouse over this button, i can see the same link...but when I clic, nothing happened.

(like an event doesn't work)

What I m doing wrong ?

Thank you.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
6 years 2 weeks ago #307797 by krileon
Replied by krileon on topic Link tab with a button in a module.
The hash is just linking to the contents of the tab so it comes into focus. It won't actually make a tab active. You can link to a tab by adding &tab=TAB_ID to your profile URL or if your link is already on the profile you can use the below usage.

Code:
<button type="button" class="cbTabNavExternal" data-tab="TAB_ID_HERE">Tab Link</button>

The tab jQuery will specifically look for and bind to the cbTabNavExternal class to select a tab.


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