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.

CommentFileSizeAuthor
#12 qt_url.patch4.07 KBbleen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pasqualle’s picture

The same request is discussed here: #361114: Theme functions or template files

tjb74’s picture

Yes 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.

Flying Drupalist’s picture

Category: support » feature

Hi, 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.

Pasqualle’s picture

display on hover (easily done) and go to a linked location on click

it 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..

Flying Drupalist’s picture

Well 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.

philbar’s picture

Why can't there be an additional URL option like the following?

  • Block
  • Node
  • QTab
  • URL
  • View

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.

design.er’s picture

I 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

vannus’s picture

i 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.

Pasqualle’s picture

vannus’s picture

ah! 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!

bleen’s picture

subscribing and throwing in my vote for philbar's suggestion in #6

bleen’s picture

Version: 6.x-2.0-rc3 » 6.x-2.x-dev
FileSize
4.07 KB

This patch adds a URL option as per philbar's suggestion ... please test against 6.x-2.x-dev

bleen’s picture

Status: Active » Needs review

status

Pasqualle’s picture

I 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..

bleen’s picture

Pasqualle ... 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?

Flying Drupalist’s picture

+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...

videoschaf’s picture

I 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...

mcevoli’s picture

I tried the url patch of bleen18 (#12). Got a couple of hunk failed but It seems working well!
Thank you!

bleen’s picture

@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

mcevoli’s picture

@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

TimAlsop’s picture

If 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.

Pasqualle’s picture

it 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..

bleen’s picture

TimAlsop: you assume correctly

TimAlsop’s picture

Each 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.

TimAlsop’s picture

I 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 ?

TimAlsop’s picture

Also, 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.

Lugir’s picture

Hello @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

Lugir’s picture

Component: Miscellaneous » Code
Status: Needs review » Needs work
Issue tags: +hover

#4 could you help to make (hover=tab content, click=link) ???

mmomin’s picture

Issue summary: View changes

@bleen18 : I applied your patch and it worked for my D6 site. How can I make it work for D7 as well ?

Thank you

netw3rker’s picture

Status: Needs work » Closed (works as designed)