How To Display Drupal nodes You Created 1 Year Ago?

| Drupal Development | 1 seen

<p>It turns out - yesterday on October 3d - my blog had a birthday - it was exatly one year since my first blog post appeared on reinisfischer.com</p><p>On that day I created 2 posts:</p><ol><li><a href="http://www.reinisfischer.com/baltics-vs-caucasus-gdp-2012&quot; target="_blank">Baltic's vs Caucasus by GDP 2012</a></li><li><a href="http://www.reinisfischer.com/can-you-blog-365-days-row&quot; target="_blank">Can you blog 365 days in a row?</a></li></ol><p>Speaking of the second (Can you blog 365 days in a row) post, that's what I said a year ago:</p><blockquote><p>I think the answer is yes, you can. But still?</p><p>This question is more for me myself. Reason I'm asking this question is - when starting something new - it all seems so exciting, so adventurous. But then comes routine, especially for blogging thing - you see that results are not so great.</p><p>By saying results, I mean - statistics. I'm person who loves data, statistics, and it's hard to continue the work when there is bad or no results at all.</p><p>Well about results, we must ask ourselves (Or in this case, I must ask myself) what is the goal, we are trying to achieve? Is it truly huge amount of traffic? Or it's the quality of content we are giving away - knowledge sharing?</p><p>In theory it sounds - do, and everything else will come. So we must do small things (which is routine) and everything (huge traffic and recognition) will come.</p><p>The purpose of this blog article is not to try to prove that in 365 days I'll get huge amount of traffic. Purpose is to do small thing (blogging) everyday, so it became a habit.</p></blockquote><p>Now - purpose of todays post is not about my goals and blogging habbits, but since I started to speak (celebrate) my first blogging birthday, I would like to mention - that I'm very happy and proud of myself - I managed almost completelty to blog everyday 365 days in a row (<a href="http://www.reinisfischer.com/i-failed-blog-365-days-row&quot; target="_blank">except there were 2 days - when I was on such place where there were no internet connection</a>).&nbsp;</p><p>I even managed to attract <a href="http://www.reinisfischer.com/blog-statistics">some modest decent traffic</a> and I actually I earned some <a href="http://www.reinisfischer.com/online-income-reports">money from blogging</a></p><p>So there are no regrets so far</p><h2>Now - back on the subject</h2><p>To celebrate my first blogs birthday - I decided to create a simple Drupal views block - to display nodes I wrote 1 year ago</p><p><img src="http://www.reinisfischer.com/sites/default/files/drupal1year.jpg&quot; width="982" height="197"></p><p><em>Drupal views block - <strong>I wrote this 1 year ago</strong></em></p><p>I'm displaying title, date and total views count</p><p>Basically - create a new view with block - add fields, style it if you wish.</p><p>To limit nodes for 1 year I'm using</p><p><strong>Filter Criteria</strong></p><p><em>Content: Post Date &lt;= (is less than or equal) - 365 days (An offset)</em></p><p><strong><em><img src="http://www.reinisfischer.com/sites/default/files/viewsblock.jpg&quot; alt="Drupal Views Filter with Offset value" title="Drupal Views Filter with Offset value" width="728" height="331"></em></strong></p><p><strong><em>Drupal Views Filter with Offset value</em></strong></p><p>Save your view and a block to your theme</p><p>Now - there is another block I'm displaying on my themes sidebar - <strong>Related Items</strong>.</p><p>You can find an article here on <a href="http://www.reinisfischer.com/related-nodes-based-taxonomy-terms">how to create related nodes based on taxonomies</a></p><p>This time I decided to apply the same Filter criteria on related items as well - I don't wan't to show related nodes older than one year:</p><p>So here is my basic settings for that:</p><p><img src="http://www.reinisfischer.com/sites/default/files/filternow.jpg&quot; width="795" height="167"></p><p>As you can see - I'm using two Post date Filter Criteria&nbsp;</p><ul><li>First one (&lt;=now) is used to limit nodes that are not with the future dates (You can read an article here, <a href="http://www.reinisfischer.com/drupal-developer/drupal-views-filter-futur…; target="_blank">how I'm using Drupal to schedule my posts in future</a>)</li><li>Second one (&gt;= - 365 days) limits those nodes not older than one year</li></ul><p>Hope this helps, and yes - first year in my active blogging career has finished - looking into coming years!</p>