Closed (fixed)
Project:
Views Isotope (Deprecated)
Version:
7.x-1.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2012 at 16:32 UTC
Updated:
26 Jul 2013 at 14:03 UTC
Does someone know how to add an "View All" Filter to get all unfiltered Results again?
Comments
Comment #1
adam1 commentedNo I found it my own - it's written in the Isotope Documentation. Just use '*' or '' as data-option-value:
<a href="#filter" data-option-value="*" class="selected">All</a>Comment #2
rdentry commentedHow could this be integrated into the view? I have a taxonomy term named "all", which is selected as default for content, but how could I make this with class="selected" on page load?
Comment #3
matt.elkins commented@rdentry I'm not sure if this solution will work for your implementation, but I decided to override the module's views-isotope-filter-block.tpl.php template file in my theme. The template gives you access to the HTML for the filters list, and I've simply added an additional item containing the code snippet from adam1's comment above:
I hope this helps!
Comment #4
eriknewby commentedIn order to get the views-isotope-filter-block.tpl.php template to work for me I had to update the code from above to:
Thanks @matt.elkins!
Comment #5
matt.elkins commentedGlad to be of help, @enewby!
Comment #6
rdentry commentedThanks a lot guys. Works great!
Comment #7
wooody commentedThank you , very nice works fine.!
Comment #8
catchmagu commentedThanks matt.elkins!!
That works for me. But how to create a separate class name to each list item???
Thanks in advance!!!
Comment #9
omvaishnav commentedHow can I disable showing all items on page load.. I need to load only particular filter items.
Can anyone help me..?
Thanks
Om
Comment #10
helonaut commentedIf I do this:
sites/all/modules/views_isotopeviews-isotope-filter-block.tpl.php<li class="first active"><a href="#filter" data-option-value="*" class="selected"><?php print t('All'); ?></a></li>The link for category "All" is gone, but the filter is still All if you visit the View. How can I make my first custom category the default filter?