开发者

Drupal: Add Archive to Primary Links as SubNav

开发者 https://www.devze.com 2023-01-14 07:53 出处:网络
My site has news articles that I want to add to the sub-nav under \"News\" as years. News 2010 2009 But I only want the current yea开发者_如何学Pythonr and 1 previous year. And I need it to hap

My site has news articles that I want to add to the sub-nav under "News" as years.

  • News
    • 2010
    • 2009

    But I only want the current yea开发者_如何学Pythonr and 1 previous year. And I need it to happen automatically.

    I know how to create a page view that will only show news articles from the previous year, I just don't know how to change the Menu & Node Title to the archived year.


    How about creating a custom views block display that prints out you menu as desired?


    Okay, got it. You might try the Views Build Menu module http://drupal.org/project/views_build_menu It seems to add a menu display called "menu" which allows you to set a parent menu item under which you views-generated menu should appear. Here's the documentation (with interesting screenshots) for Views Build Menu: http://drupal.org/node/831564

    0

    精彩评论

    暂无评论...
    验证码 换一张
    取 消