Is it possible to create a page rather than a block with quicktabes? For example, what's the best way to get quicktabs on a specific page?

Comments

pasqualle’s picture

cerup’s picture

I'm not really trying to assign a path to a tab though. I'm wondering how to put quicktabs (multiple ajax tabs) on a page. This could potentially mean making a views page and wanting to put a quicktab on it. Would this have to be done in php, custom template for a page, or...?

pasqualle’s picture

You put the quicktab block on any page same as you would do with any other block..

step by step how to put quicktab block on a views page:
1. create a views page with path "myquicktabpage"
2. go to the admin/build/block and click configure next to your quicktab block
3. set block visibility by path; select "Show on only the listed pages." write "myquicktabpage" as path
4. on admin/build/block page move your quicktab block to content (or any other) region and save

floadmin’s picture

I think what is being asked is to make the content of a page actually the quick tab. Can that be done?

pasqualle’s picture

it is not possible to simply create a page from a quicktab, as QT does not create a page callback. So you do not have the path (url) where the quicktab should be displayed. That's why I suggested to create a view or a node, then you have the path, then you can display the quicktab as you like (even with replacing the whole content, within the theme template file)..

you can create a page callback and put a quicktab on that page, but it is only possible if you know the Drupal api, but I do not really want to get into working example code in this issue, as it would be like creating a new module..

or it is probably possible without programming with the panels module. as I know it supports creating a page from a block..

drupalusering’s picture

i use a module that is called insert block..

eL’s picture

Empty Page Callbacks module is a solution.

Just create emtpy page and asign block with QT

alanburke’s picture

One better, create the callback, and use this

 $qt = quicktabs_build_quicktabs('my_quicktab_id');
  return  $qt['content'];

to display the content.

drm’s picture

The page callback is not hard for us developers. But just as a View can be put in a block or a page, seems it would be nice to just be able to assign a quicktab to a page and url as well, instead of a block. Would be a nice feature for site builders.

jonhattan’s picture

Status: Active » Closed (works as designed)

Using empty_page module mentioned in #7 is enough.

Closing the issue for queue cleanup.