0

I'd like to create a tabbed menu of my support page like this:

           | FAQ | Contact us |

I'm using views accordion to create a view for my FAQ, but I'm using the contact form for my Contact form.

How can I combine them in a same menu tab while having each tab have its own path so that I can theme the current tab using a:active and for seo purposes?

I've tried quicktabs and block tabs, which work but doesn't give me separate paths. The node tabs module comes close but it doesn't seem to be able to work with a form.

I'm thinking I might need to build it programmatically using a custom module and hook_menu: How can I create a simple tab? but I'd prefer not going into that if possible

1

If your "Contact us" page is not the default Drupal contact page, but a webform (i.e. a node), you could use views to create tabs (see this tutorial, for example). In that case you would create a view that shows just the one webform node and configure it the way that it is displayed as a tab - and the FAQ view as default tab.

I suppose that there is also a workaround embedding the contact form instead of using a webform node.

  • Webform would work but since I couldn't get the code to work (might be for d6, I don't know) I tried the module drupal.org/project/contact_form_on_node in the comments of the page you links and it worked! Thank you!!! – ashash May 27 '14 at 8:54
0

You can achieve that using Quick Tabs.

The Quick Tabs module allows you to create blocks of tabbed content, specifically views, blocks, nodes* and other quicktabs*. You can create a block on your site containing multiple tabs with corresponding content.

  • hi, thanks for the reply :) I've tried it and it doesn't give me separate parts. My |FAQ|Contact us| tab on my support page returns something like /support#arg=0, which doesn't work well for theming a:visited and seo – ashash May 26 '14 at 18:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.