Closed (outdated)
Project:
Toolbar
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2010 at 17:42 UTC
Updated:
6 Feb 2022 at 21:19 UTC
Jump to comment: Most recent
Comments
Comment #1
dankh commentedThis is only possible via code. Toolbar uses the Drupal menu system for storing links (we don't reinvent the wheel :) ). Thus Toolbar requires a valid drupal path ( more info here http://api.drupal.org/api/function/menu_valid_path ) to create the shortcut. An anchor is not a valid Drupal path.
But :), you can make this via code. Toolbar is offering alter function (toolbar_build_shortcuts) so you can alter the shortcuts before render.
Here is an example of what you want called from custom module called "mymodule" :
This function will all shortcut to the Toolbar with title "Top" and link to "#top".
Comment #2
baff commentedGreat - Thanks a lot
Comment #3
avpadernoI am closing this issue, as Drupal 6 is now not supported.