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

nedjo’s picture

Likely 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:


drupal_set_title(t('My title'));

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.

CosmicVoyager’s picture

Status: Active » Closed (fixed)

Thanks. The drupal_set_title() worked for me, although I'll look into Panels as well.