dpfps86064 2010-11-22 16:49
浏览 25
已采纳

Drupal 7:试图覆盖主菜单,可以吗?

I am trying to make it so that the Main Menu in Drupal 7 is printed in HTML like this:

<ul id="navigation">
    <li><a href="#" >Home<span>Introduction</span></a></li>
    <li><a href="#" >Features<span>The feature tour</span></a></li>
    <li><a href="#" >Pricing<span>Our fee made clear</span></a></li>
    <li><a href="#" >Support<span>Help when needed</span></a></li>
    <li><a href="#" >Blog<span>Stay informed</span></a></li>
</ul>

Inside the span tags I would like to print the description if there is one for the menu link item.

Thanks.

  • 写回答

1条回答 默认 最新

  • dotcraq3249 2010-11-22 17:02
    关注

    You can override the various theme functions that generate your menus. http://api.drupal.org/api/search/7/theme_menu

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?