Quantcast
Channel: UncleCode.Com - Technology Blog» Drupal
Viewing all articles
Browse latest Browse all 8

Drupal- How to place a “name” attribute anchor link in menu item

$
0
0
If you are trying to place a “name” attribute in menu hyperlink then this can be accomplished by declaring  a function in your template.php file as below- <?php function phptemplate_menu_item_link($item, $link_item) { // Convert anchors in path to proper fragment $path = explode('#', $link_item['path'], 2); $fragment = !empty($path[1]) ? $path[1] : NULL; $path = $path[0]; [...]

Viewing all articles
Browse latest Browse all 8

Trending Articles