Active
Project:
Date
Version:
7.x-2.5
Component:
Views Argument
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2012 at 19:45 UTC
Updated:
15 Jun 2012 at 19:15 UTC
I have a date view which has a contextual filter for years, and am using it to show a summary list of years. In the summary, it's putting an 'undated' option at the bottom of the summary. I don't have any undated content, and anyway, the undated option just links to the wildcard argument. I can't figure out how to disable the 'undated' option. Removing the wildcard argument doesn't change anything. What am I missing?
Comments
Comment #1
elly commentedBueller?
Comment #2
star-szrI couldn't find any option to remove this either. In the end I figured out that I did actually have an undated piece of content which came from a Feeds import. Deleting that piece of content also removed the "Undated" item from my summary view.
The fact that "Undated" just shows all content seems to defeat the purpose of even having an "Undated" option to me, so moving to feature request.
I've included a quick fix if you can't seem to get rid of Undated. Substitute articles for your view's machine name and block_article_archives for your view display's machine name (Advanced > Other > Machine Name). You can add this code to your theme's template.php or in a custom module, be sure to change MYTHEME to your theme or module name and clear your cache.
Also, if your summary is being sorted ascending, substitute
array_shift()forarray_pop().Comment #2.0
star-szrclarifying