Closed (fixed)
Project:
Javascript Tools
Version:
5.x-0.8
Component:
Tabs
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2007 at 16:16 UTC
Updated:
2 Oct 2007 at 12:44 UTC
I'm setting up an issue tracker, and I set up tabs to show several views of my issues, and it works fine. I'm also trying to add a "Create" tab to allow users to create new issues, and this tab goes to node/add/issue. This works, but now the title of my page is "Submit Issue", no matter which tab I'm looking it. My tabset does have a title set, and this is shown properly when there are only views in the tabs. I've tried moving the "Create" tab to different places on the tab list, but the title is always overriden. Is there something I can do here?
Thanks for any help.
Comments
Comment #1
nedjoLikely the project issue code is setting the page title. Probably you can override this by calling the following *after* the code where you load the project issue form into the tab:
Note that Panels 2 http://drupal.org/project/panels includes tabs support http://drupal.org/project/panels_tabs and when it's stable you could probably save yourself work by creating a panelset, rendering it as tabs, and including a form on the tab using formblock module http://drupal.org/project/formblock.
Comment #2
CosmicVoyager commentedThanks. The drupal_set_title() worked for me, although I'll look into Panels as well.