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 there a way to have tabs as links? I would like to have tabs for a create content link, back tab and I also need tabs that link to external pages. I see how to add a node page, or a block but not a simple link. Thanks.
Comment | File | Size | Author |
---|---|---|---|
#12 | qt_url.patch | 4.07 KB | bleen |
Comments
Comment #1
PasqualleThe same request is discussed here: #361114: Theme functions or template files
Comment #2
tjb74 CreditAttribution: tjb74 commentedYes thank you, Sorry didn't think it to be a theming issue so hadn't noticed that thread. I can theme my node.tpl files to create tabs as links but I was trying to avoid theme overrides where possible with either node.tpl files or QT theming.
Comment #3
Flying Drupalist CreditAttribution: Flying Drupalist commentedHi, I like to second this request as well. For my usecase, I would like the quicktab content to display on hover (easily done) and go to a linked location on click. For this scenario it would be terrific to be able to give tabs a href. Thanks.
Comment #4
Pasqualleit is a link to tab content, or a link to somewhere, but mixing the two (hover=tab content, click=link) will not work..
I still think this should be implemented with a theme template, and not with QT functionality..
Comment #5
Flying Drupalist CreditAttribution: Flying Drupalist commentedWell if it's theme only then only themers may edit the links, so rather than being an administrative menu it becomes a hardcoded thing for developers.
About the tab/hover issue, maybe save quicktabs link as rel, page link as href (for seo reasons) and js swap on click?
I want to use this to create ajax menus of the type you would find on slate: http://www.slate.com/
But I don't really know if this is really really quicktabby.
Comment #6
philbar CreditAttribution: philbar commentedWhy can't there be an additional URL option like the following?
My use of this would be a series of node tabs, with a "Buy" tab at the end which links to my external shopping cart.
Comment #7
design.er CreditAttribution: design.er commentedI agree with philbar - this would be the most easiest and efficient way for end users to provide tabs with links to other nodes/pages without to have to work programmatically or hack something.
Maybe there is a way for you to implement this nice feature into the QT core, Pasqualle? I think a lot of people would appreciate it - me included. :)
Kind regards,
Stefan
Comment #8
vannus CreditAttribution: vannus commentedi think this feaure request has morphed somewhat.
i dont think we want to be taken to a different page than the one the tabs are on (anymore).
(i certainly dont)
my use;
List Items | Add Item | Configure Item
much like the
admin/content/types
page, and what philbar describes.It benefits usability as everything is at your fingertips.
Comment #9
Pasqualle@vannus: #278994: Assign special forms to tabs
Comment #10
vannus CreditAttribution: vannus commentedah! nice!
now thats solved - im going to head over to #489412: Quick Tabs: Absorb CCK Fieldgroup Tabs module, cause QT & CCK Fieldgroup Tabs 6.x-1.0 arent playing nicely together for me.
cheers Pasqualle!
Comment #11
bleen CreditAttribution: bleen commentedsubscribing and throwing in my vote for philbar's suggestion in #6
Comment #12
bleen CreditAttribution: bleen commentedThis patch adds a URL option as per philbar's suggestion ... please test against 6.x-2.x-dev
Comment #13
bleen CreditAttribution: bleen commentedstatus
Comment #14
PasqualleI am not sure that this should be in QT, as most people would like to open the link inside the tab, but it is just not possible..
Comment #15
bleen CreditAttribution: bleen commentedPasqualle ... After re-reading the comments in this thread, it seems that vannus was the only commenter asking for the behavior you're describing. Most of the people (comments #3, #6 & #7 and the Original Post) in this issue seem to want the tab to click off to a new page. That's also what I needed when I stumbled across this thread.
Thoughts?
Comment #17
Flying Drupalist CreditAttribution: Flying Drupalist commented+1 This is what I need too. Making a note in the admin UI that this opens outside the tab should be good enough.
If anyone needs it inside the tab I'm sure they'll make their own feature request...
Comment #18
videoschaf CreditAttribution: videoschaf commentedI just stumbled over your discussion, and I have to say I would also desperately need the option of opening a specified URL in a quicktab and not a new page.
The reason is that I want to use the output of other modules (that do not create nodes or blocks) to display in a QT.
Presently I would want to display the output of the Vocabulary Index module (with the respective node counts) in a quicktab. So that i can display sub-terms as presented by the vocabulary index module (again with node counts), upon clicking on a parent term...
Comment #19
mcevoli CreditAttribution: mcevoli commentedI tried the url patch of bleen18 (#12). Got a couple of hunk failed but It seems working well!
Thank you!
Comment #20
bleen CreditAttribution: bleen commented@mcevoli: were you patching against 6.x-2.x-dev? ... I havent looked at this patch in a while, so dev may have changed enough at this point to cause #12 to have problems
Comment #21
mcevoli CreditAttribution: mcevoli commented@bleen18: Yes, 6.x-2.x-dev downloaded on Monday. But I see there is already a new version dated Tuesday that seems include url linking.
EDIT: I don't see any changes in new dev regarding url
Comment #22
TimAlsop CreditAttribution: TimAlsop commentedIf I understand this patch correctly, it will open the URL in browser, not in the tab ? I want to have a feature like this so that I can use QT to select different domains/sites, so if I am looking at a site home page at http://example.com and I click on a tab, I expect same browser window to open http://sub.example.com (based on the URL configured in the tab).
I will test the patch and confirm if it does what I want. If it does, I would love it to be part of the 2.0 release.
Comment #23
Pasqualleit is not possible to open an url inside the quiktab, as asked in #3, #18 (and in other issues). If you want to open a url simply use a menu.
As I see it is really confusing that every tab content is opened inside the quicktab, and suddenly one tab would open a new page. So I do not support this request. If you could show me 5 websites where tabs work like that (mixing tabs with links) I would be surprised.
This could be handled with QT theming, and (as I said in #1) with theme templates it should be really easy..
Comment #24
bleen CreditAttribution: bleen commentedTimAlsop: you assume correctly
Comment #25
TimAlsop CreditAttribution: TimAlsop commentedEach page which is loaded from a URL configured in a tab will have the same tab at top of screen, so the user will press the tab and a new page will be shown, but it will look like the tab has opened up new content from users point of view.
I found http://drupal.org/node/426736 which includes a path to add a URL tab type to the QT module. I am testing this now to see if it does what it says.
I haven't completely ruled out using menu, but would like to explore using QT instead, as I can see a few advantages of using the QT module for site/domain selection at top of every site page.
Comment #26
TimAlsop CreditAttribution: TimAlsop commentedI tried the patch included in #12. It seems to work and did what I expected, but I found a bug...
When I select a tab to be the default, and that tab is a URL tab, the URL is not opened. Perhaps it should not be possible to make a tab configured with URL type as the default tab when page is loaded ?
Comment #27
TimAlsop CreditAttribution: TimAlsop commentedAlso, I noticed that the other tabs which are not URL type, have a unique URL which can be used to open the page and make that tab the one which is shown, but a URL tab does not have such a unique URL. I think this is needed, so that the URL type is consistent and that a page can be opened with the URL tab selected, instead of the default tab.
Comment #28
Lugir CreditAttribution: Lugir commentedHello @Pasqualle
I had read the quicktabs_hover_288902-4.patch you posted at http://drupal.org/node/288902
and applied it to the quicktabs-6.x-2.x-dev version, so user of my site can switch tabs via mouse hover
and, i hope the link in a tab can be clickable, that makes people can go to a node list page to see more node, not just the summary in a tab container.
in the hover patch, you add a tabs type named hover, then in the js file, use hover action as a click to call the quicktabsClick () function to switch tabs. So, even i read #361114: Theme functions or template files, I changed the links in tabs, but there is no clickable effect.
so, the needs is switch tabs via hover, and links in tabs can be click, could you help me for this? thanks very much
Comment #29
Lugir CreditAttribution: Lugir commented#4 could you help to make (hover=tab content, click=link) ???
Comment #30
mmomin CreditAttribution: mmomin commented@bleen18 : I applied your patch and it worked for my D6 site. How can I make it work for D7 as well ?
Thank you
Comment #31
netw3rker CreditAttribution: netw3rker commented