Skip to Content Skip to Menu

How to navigate between tab?

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 5 months ago - 10 years 5 months ago #245736 by dotcom22
How to navigate between tab? was created by dotcom22
I wondering what is the best method for navigate between tabbed pane without clicking on related tab name. In fact sometime I have a lot content inside tab and instead to force users to go to top page and click on tab name, I would prefer put in some case a link at bottom of my tab.

The problem is tabs link do not have unique url because they seem to be generated with your tabpane.min.js and all tab url look like www.site.com/my-profile# .

Actually I found this method:

<a href="index.php?option=com_comprofiler&task=userprofile&user=[cb:userdata field="user_id" user="#displayed" /]&Itemid=112&tab=27" >Go to tabbed pan 27</a>


However even if this work well, that make a full load/request instead to a simple smooth "tab switch".

any clue ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 10 years 5 months ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245750 by krileon
Replied by krileon on topic How to navigate between tab?
It needs to be done using jQuery, but it's not easy as CB 1.x tabs don't have a unique id like they now do in CB 2.x so triggering a click on them requires using an index selector. There's no onclick function or general jQuery binding to trigger a tab to open though (neither in CB 1.x or CB 2.0). Using &tab= in URL will also work, but you're right that it'll cause a full page load. With CB 2.0 you'd be able to use jQuery to trigger a click on the tabs id.


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.
The following user(s) said Thank You: dotcom22

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

Moderators: beatnantkrileon
Powered by Kunena Forum