Views

Spring Cleaning

Escapades dropdown menu
Check it out! Animation! On a site!

Nitkin.net is a year old. A year and three days, in fact.

Since I set up the domain, I've been using it to document projects - a reprap over the summer, coding games in the spring, a wooden lock, and some really weird stuff. All that writing took a toll on site organization.

(This post has a lot of big words. Instead of worrying about them, take a look at the brand-new Escapades menu above!)

Archives, Redux

Views does almost what it should. There doesn't seem to be support for nesting lists, which I was looking for. It refuses to create a nested list (below). JQuery and AJAX could've done a great job of theming that into an accordian menu.

  • 2012
    • Oct
    • Nov
    • Dec
  • 2013
    • Jan
    • Mar
    • Apr

Views

Views is an amazing module.

By default, the Drupal homepage shows a "Teaser" of each node (piece of content) that's been promoted to the front page. If there are more than 10 posts, it'll do you the favor of displaying a pager at the bottom. That's all it does, though. There's no filtering, only rudamentary ordering, and general lack of customization.

When the site came online, I used the Path module to give content a snazzy URL (in lieu of the Drupal default "nitkin.net/node/17"). All of the articles (the things in the frontpage use the URL format "nitkin.net/year/month/title"). I wanted the home page to filter using the same yyyy/mm scheme to allow granular browsing.

nitkin.net/2012 shows all posts from 2012

nitkin.net/2012/6 shows all posts from June 2012nitkin.net/2012/6/views displays this post

That's where Views comes in.