1

See the implementation on this guy's blog: http://deglos.com/blog

YEAR
-- Month
-- Month
YEAR
-- Month
-- Month

Anyone know how this was accomplished?

0

It's normally done using Views and a good tutorial on the process has been explained by Chris Shattuck on his blog - see How to create a monthly archive block for a Drupal blog with Views

A little sleuthing on how the blog you mention was generated leads me to believe that the author wrote the wp_blog module on Drupal.org which provides a view that ultimately generates the year -> month -> post hierarchy. You can see an exported view for the blog archive block here: http://cgit.drupalcode.org/wp_blog/tree/views/wp_blog.view?id=47246da29d176c028a749632807d207dfe0461e1

  • 1
    Hey George, yeah we've already achieved the monthly archive block so that part is done. The problem we want is to have Year headings to group those Monthly archives together. In fact, the year doesn't even need to link, and can just be text, but we have not been able to achieve this look through views. – Alex Katayama Sep 21 '16 at 14:41
  • @AlexKatayama were you able to solve this? I am in the same boat right now! – jerrygarciuh Jan 28 '19 at 21:38
  • For D8 see this answer - drupal.stackexchange.com/questions/275848/… – jerrygarciuh Jan 29 '19 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.