I don't know if that issue is covered by the statement in alpha release: "In Panels pages, secondary local tasks (tabs) for contexts that have their own display do not appear."
I cannot display tabs for 3 panel pages with the following urls:
PANEL A: home/%user
PANEL B: home/%user/pics
PANEL C: home/%user/videos
My Panel pages menu settings are the following:
PANEL A: MENU_NORMAL_ITEM ; Title: Home
PANEL B: MENU_LOCAL_TASK
PANEL D: MENU_LOCAL_TASK
When displaying home/%user, I can only see the [view] an [edit panel] tabs.
Note also that the "Home" menu item is not displayed in the menu.
I tried to define PANEL B menu as: MENU_DEFAULT_LOCAL_TASK with no more success.
Knowing that I managed to set it up for non-dynamic paths, I'm wondering if my problem is a setup problem or if it's not possible to implement this at the moment?
Comments
Comment #1
merlinofchaos commentedYou need to define panel A as panels/%user/view (or something) instead of panels/%user and define IT is a default tab. This works the same way as it does in Views (same code, actually) which is documented here: http://views-help.doc.logrus.com/help/views/menu
Comment #2
Erco commentedThank you so much for a prompt answer from a busy man.
Br,
Erco
Comment #3
Erco commentedSorry to re-open that issue but I'm really puzzled by it.
Thank to your explanations, I could find a way to setup my tabs:
PANEL A: panels/%/profil/profil - Default TAB, parent TAB set to Normal menu Item
PANEL B: panels/%/profil/pics - Normal TAB
PANEL C: panels/%/profile/videos - Normal TAB
Then my tabs are correctly displayed . e.g., when I browse panels/15/profil, I have the three tabs
[profil] - [pics] - [videos]
I used that setup because I cannot display my tabs using "%user" instead of "%" for a reason I don't understand.
BUT Then, I cannot find a way to pass my argument down to the views embedded in the panel, as it is the case when I use %user.
I have the following argument setup for my 3 panels:
argument:%0 position in path:1 context: uid
I tried the following to pass this argument down to my view (which as uid defined a input argument):
In the configuration window:
- assign uid as context for user:uid (like I did when using %user) -> did not work
- assign uid as "no context" AND check "send arguments" -> did not work
- assign uid as "no context", uncheck "send arguments" and set "%0" in the argument field -> still did not work.
I tried both defining my panels as "custom pages" and "panel page", with the same result.
I also tried both inserting my views in my panels as "views" or inserting them as "view panes" with no more result.
Comment #4
casey commentedIt is working in beta4.