Active
Project:
Panels Tabs
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2011 at 13:32 UTC
Updated:
31 Mar 2014 at 21:41 UTC
Jump to comment: Most recent
Hi,
I've replaced my User view with a Panels Page, styled as Tabs. I'd like to link to specific tabs from various places in the site, along the lines of www.sitename.com/user/some_username?tab=3 or www.sitename.com/user/some_username?tab=edit .
Obviously the URL will not change when switching tabs, but I think the option to define which tab will be opened on page load is significant.
Any chance of this happening?
Thanks,
Tal
Comments
Comment #1
valante commentedBump . . . Any takers?
Comment #2
mstrelan commentedThe downside of using Flag instead of subscribing via comments is that no one else can see that I have +1'd this.
Comment #3
mstrelan commentedIs this link useful?
http://benalman.com/code/projects/jquery-bbq/examples/fragment-jquery-ui...
Comment #4
dazz commentedI had the same problem, you have to add something like the following to the for loop in panel_tabs.js
The whole code:
Comment #5
ar-jan commentedI have tried the solution in #4 and it seems to work, but not reliably. I.e. after visiting a path like node/123#tabs-0-middle-3 it starts with the 3rd tab, but changing the path to node/123#tabs-0-middle-2 the correct tab doesn't always get selected (maybe some caching issue?).
Also when using such a link, for the first tab it loads just below the actual tab, for the second somewhere in the middle of the page, and the third even lower on the page. So this seems to somehow use the vertical position as if the content of the panes was displayed below each other.
Anyone else notice this? And is this a proper solution in the first place? (it seems the added code acts on a mouse click, which is not the same as visiting a path?)
Comment #6
EstherVillars commentedsee #2214435: Make Panels Tabs Linkable