I'd like to be able to display a feed's feed items from a specific year. I think this is possible with views but I'm not sure how to do it exactly.

Comments

MegaChriz’s picture

Status: Active » Fixed
  1. Make sure that in the mapping configuration of your importer that you at least map to "Published date (created)".
  2. Add a contextual filter of type "Content: Created year" to the view "feeds_defaults_feed_items".
janebootydoe’s picture

How can I link to the year without it stacking when the year changes? I did

<select onChange="window.location.href=this.value">
	<option>Browse by year</option>
    <option value="<?php print url(current_path() . '/2015'); ?>">2015</option>
    <option value="<?php print url(current_path() . '/2014'); ?>">2014</option>
    <option value="<?php print url(current_path() . '/2013'); ?>">2013</option>
    <option value="<?php print url(current_path() . '/2012'); ?>">2012</option>
    <option value="<?php print url(current_path() . '/2011'); ?>">2011</option>
    <option value="<?php print url(current_path() . '/2010'); ?>">2010</option>	
</select>

but if you go from 2015 to 2014 it becomes /node/xx/feed-items/2015/2014.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.