{"action":"created","issue":{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/185","labels_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/185/comments","events_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/185/events","html_url":"https://github.com/wvuweb/cleanslate-cms/issues/185","id":115568147,"number":185,"title":"Feature Request: Blog Archive List","user":{"login":"architarious","id":561705,"avatar_url":"https://avatars.githubusercontent.com/u/561705?v=3","gravatar_id":"","url":"https://api.github.com/users/architarious","html_url":"https://github.com/architarious","followers_url":"https://api.github.com/users/architarious/followers","following_url":"https://api.github.com/users/architarious/following{/other_user}","gists_url":"https://api.github.com/users/architarious/gists{/gist_id}","starred_url":"https://api.github.com/users/architarious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/architarious/subscriptions","organizations_url":"https://api.github.com/users/architarious/orgs","repos_url":"https://api.github.com/users/architarious/repos","events_url":"https://api.github.com/users/architarious/events{/privacy}","received_events_url":"https://api.github.com/users/architarious/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/labels/feature%20request","name":"feature request","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"nreckart","id":14725,"avatar_url":"https://avatars.githubusercontent.com/u/14725?v=3","gravatar_id":"","url":"https://api.github.com/users/nreckart","html_url":"https://github.com/nreckart","followers_url":"https://api.github.com/users/nreckart/followers","following_url":"https://api.github.com/users/nreckart/following{/other_user}","gists_url":"https://api.github.com/users/nreckart/gists{/gist_id}","starred_url":"https://api.github.com/users/nreckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nreckart/subscriptions","organizations_url":"https://api.github.com/users/nreckart/orgs","repos_url":"https://api.github.com/users/nreckart/repos","events_url":"https://api.github.com/users/nreckart/events{/privacy}","received_events_url":"https://api.github.com/users/nreckart/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-06T19:11:54Z","updated_at":"2015-12-07T21:38:48Z","closed_at":null,"body":"# Proposal\r\n\r\nIf a user comes onto one of our blogs and is looking for a story from about a few months or sometimes years back, they have to browse through dozens or potentially hundreds of different posts looking for their story. It would be ideal if there was a dynamically generated list on the side that could provide a link to (possibly cached) list of all articles that where posted in a specific month or year.\r\n\r\nHere's an example of how we used to use this type of functionality in old slate:\r\n\r\nSource: http://cpass.wvu.edu/news \r\n![screenshot of current CPASS blog](http://i.imgur.com/2xyQsrm.png)\r\n![scroonshot of CPASS blog archives](http://i.imgur.com/y8Jo4n1.png)\r\n\r\n_EDIT:_\r\n## Thoughts on implementation\r\n\r\nCheck out #186 , except you would be focusing on r:article:published_at instead of r:article:tags\r\n"},"comment":{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/comments/162671928","html_url":"https://github.com/wvuweb/cleanslate-cms/issues/185#issuecomment-162671928","issue_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/185","id":162671928,"user":{"login":"nreckart","id":14725,"avatar_url":"https://avatars.githubusercontent.com/u/14725?v=3","gravatar_id":"","url":"https://api.github.com/users/nreckart","html_url":"https://github.com/nreckart","followers_url":"https://api.github.com/users/nreckart/followers","following_url":"https://api.github.com/users/nreckart/following{/other_user}","gists_url":"https://api.github.com/users/nreckart/gists{/gist_id}","starred_url":"https://api.github.com/users/nreckart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nreckart/subscriptions","organizations_url":"https://api.github.com/users/nreckart/orgs","repos_url":"https://api.github.com/users/nreckart/repos","events_url":"https://api.github.com/users/nreckart/events{/privacy}","received_events_url":"https://api.github.com/users/nreckart/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T21:38:48Z","updated_at":"2015-12-07T21:38:48Z","body":"```html\r\n<h4>Archive</h4>\r\n<r:set_var name=\"archive_months\" value=\"Dec2015, Nov2015, Oct2015, Sept2015\" />\r\n<r:loop:each items=\"{$archive_months}\">\r\n  <a href=\"<r:page:url />/<r:date_format value=\"{item}\" format=\"%Y\" />/<r:date_format value=\"{item}\" format=\"%m\" />\">\r\n    <r:date_format value=\"{item}\" format=\"%B\" /> <r:date_format value=\"{item}\" format=\"%Y\" />\r\n  </a>\r\n  <br/>\r\n</r:loop:each>\r\n```\r\n\r\nIt isn't pretty, but it gets the job done. This uses the 'archive_months' variable to store a comma separated list of Month/Year items. In this example I set the variable in the template, but it could easily come from a custom page attribute, which could then be maintained via the UI.\r\n\r\nI don't know that I would recommend adding it to the toolkit or patterns since it really isn't the best solution in the world. It's basically a stopgap.\r\n"}}