Custom Anchors

rgraves - October 19, 2009 - 15:52
Project:Tabs panel style
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm using Tabs Panels Style with Panels 3. When I click on a tab within a panel, the anchor for the URL is quite long and looks unprofessional.

e.g.
http://www.mydomain.com/#tabs-subjects-row_2_1-1
http://www.mydomain.com/#tabs-subjects-row_2_1-2

Is there a way to have custom anchor names like the following:
http://www.mydomain.com/#articles
http://www.mydomain.com/#bibliographies
etc.

This way I can hard code what they are. It will look more professional and I won't need to worry about the anchor names changing in case of bookmarks or external links to the page.

#1

nedjo - October 21, 2009 - 22:27

The tabs module now has a configuration option that you can select to construct anchors from tab titles: admin/settings/tabs.

#2

rgraves - October 22, 2009 - 14:54

Thanks. I'm still using tabs 6.x-1.0 so that's why I didn't see it. I see it also now has the ability to hide empty tabs (which I solved through a hack) and set a default active tab - both very nice little features.

I'll have to upgrade.

 
 

Drupal is a registered trademark of Dries Buytaert.