I suppose the easiest way to ask for help is to explain exactly what I'm trying to do and what I have tried. I apologize in advance if this is long-winded.
Ultimately, I would like a page with tabs for different content, some of which requires authentication.
I am using Drupal 6 and have been using the patch at http://drupal.org/node/308113#comment-1448538 along with the fix to control anonymous access at http://drupal.org/node/306988#comment-1186239.
The first problem arose when trying to restrict a pane (tab) by authentication status. I need the tab to show up, even for anonymous users, so that everyone knows that content is there. By restricting the pane to authenticated users, it does not show up for anonymous users.
When not restricting access to the pane, even content that should be protected by other access control modules is visible to anonymous users.
Neither attempt is usable for me.
My next idea was to create another pane (tab, with the same title as protected content) that only includes a message about login required and a login box, and only make that pane accessible to anonymous users. Once they login, the page refreshes and they have access to the pane (tab) that was invisible before login.
The only problem with this method is that upon page refresh, the first tab comes to the front once again. This is very undesirable behavior from a usability point of view.
I need a way to choose which tab will be selected upon page load. Can this be done?
Thanks!
Comments
Comment #1
wim leersThis should not be implemented in Tabs panel style, which is a *style*, it shouldn't contain any business logic like the one you propose. You should ask for this feature in the Panels issue queue.