Forums

Welcome, Guest
Username: Password: Remember me

TOPIC: JU Tabs page scroll to tabs when using a link ?

JU Tabs page scroll to tabs when using a link ? 3 years 4 months ago #1987

  • Chacapamac
  • Chacapamac's Avatar
  • Offline
  • Junior Boarder
  • Posts: 25
  • Karma: 0
When you are using an external (out of the actual tabs page/article) or same page/article link, I want to know if the page scroll up/down to the target tab?

That Type of link …...
Switch tab by Link/URL:
- Inside JUTabs, if you want to switch to another tab from current JUTabs by link, you can use the link: #jutabs-X, X is tab number you want to switch to, 0=First tab. For example, to switch to 2nd tab, you can use this link: <a href="#jutabs-1">Switch to 2nd tab</a>, you can also switch to next/prev tab use this link(next/prev tab to be switched to depends on the tab which you put the link): <a href="#jutabs-next">Switch to next tab</a> or <a href="#jutabs-prev">Switch to prev tab</a>

- Outside JUTabs, if you want to open a tab of a JUTabs by link, you can set tab name via tab param like this: {jutabs name="tabname" ...}...{/jutabs}, then use the link with name of tab like this to open tab: <a href="#tabname-1">Open 2nd tab of tabname</a>

- To open a tab when page load by URL:
1. Set name for tab: {jutabs name="tabname" ...}...{/jutabs}
2. For example: To open 2nd tab, use this link: yoursite.com/thePageContainsJUTabs/#tabname-1
Note: Tab name must be in [0-9][a-z][A-Z] and without space. When set tab name, make sure the tab name is unique if you have more than one tab in a page.
The administrator has disabled public write access.

JU Tabs page scroll to tabs when using a link ? 3 years 4 months ago #1989

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
Yes, the page can scroll down to tab the tab has link, you can config this in the plugin config.
The administrator has disabled public write access.
The following user(s) said Thank You: Chacapamac
Time to create page: 0.248 seconds
Powered by Kunena Forum