On http://fjvu.dk/documents I have created a view with exposed filter. Until apply filter has been clicked, I want the list to be empty. How can this be achieved?

Moved from: http://drupal.org/node/1107198/

CommentFileSizeAuthor
#2 Screenshot.png278.5 KBlsolesen

Comments

merlinofchaos’s picture

Status: Active » Fixed

Under Exposed Form on the right (in the advanced settings, you may have to open it up) there is an "Exposed form style". Click on the setting and change it to "Input required".

lsolesen’s picture

Version: 7.x-3.x-dev » 6.x-2.12
Status: Fixed » Active
StatusFileSize
new278.5 KB

Damn, I am using Views 2. Sorry about that. Can you do it there, also when you have four exposed filters as in http://fjvu.dk/documents? There is a setting under Search: Search terms, where I can choose Show None, but I guesss, that do no apply when you have the select boxes with chosen as default.

merlinofchaos’s picture

Status: Active » Fixed

Sorry no, Views 2 does not have this feature.

Anonymous’s picture

You might be able to do conditional statements in a tpl.php. For example a custom views-view-table.tpl.php in the theme folder.

For example pseudocode:


If (if there is a search result show result list) {

// code to display the results if there is a search. 

} else {

// display starting page

}

Status: Fixed » Closed (fixed)

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