Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it possible to relocate the navigation buttons? How would I do it?
My goal is to create a little navigation box just below each tab, and place the buttons there where they are more visible.
Comments
Comment #1
nedjoYou have a certain amount of control through CSS but it would be hard to achieve what you're looking for.
Comment #2
silurius CreditAttribution: silurius commentedYeah, I'm fairly certain that moving them to a position above the tab content is currently not feasible without doing some pretty wonky things with positioning or margins/padding. I'd be very surprised to learn that the buttons are serving anyone especially well right now, given that they are positioned somewhere where they are very likely to be missed.
Anyone up for writing a patch?
Comment #3
silurius CreditAttribution: silurius commentedPossible compromise: What would it take to reproduce at least some of the functionality of the nav buttons for use elsewhere in the content?
(My only real goal here is to provide an easy means of navigating into different tabs from various locations in the content other than the very bottom of the page.)
Comment #4
silurius CreditAttribution: silurius commentedAnyone?
Comment #5
dobe CreditAttribution: dobe commentedNot sure if your still trying to do this but this is what I did.
I wanted to have the ability to create a tabset with the buttons on the top as well as the buttons on the bottom. When I created the tabs programmaticly.
In tabs.theme.inc file. I copied the theme_tabset() function and modified the position of the tabs like so:
Then in tabs.module under the theme hook I added this:
Then in the function tabs_elements() I added this after $type['tabset']....:
Then when I program the tabs using my module I just changed the type from "tabset" to "btabset" then my tabs output below the tabset. This may be a haggard way of doing this but it was quick.. Making this functionality built in to tabs would be nice.
-Jesse