Hello all,
Does Drupal provide a way to display exposed filter forms automatically (in a region of choice) when the respective view is displayed without using the "only show when PHP returns TRUE" functionality?
Best,
Toon
On Thu, May 26, 2011 at 6:05 PM, toon severijns toon.severijns@gmail.com wrote:
Hello all, Does Drupal provide a way to display exposed filter forms automatically (in a region of choice) when the respective view is displayed without using the "only show when PHP returns TRUE" functionality?
I believe you are talking about Views.
In the basic settings there is an option "Exposed form in block", Change this to yes and in the block you will see an additional block, place it in desired region. Now in the view page you will be able to see the block of filter forms.
I'm sorry i should have been more clear:
Does Drupal provide a way to display exposed filter forms automatically (in a region of choice) *ONLY *when the respective view is displayed without using the "only show when PHP returns TRUE" functionality?
On Thu, May 26, 2011 at 3:28 PM, sivaji j.g sivaji2009@gmail.com wrote:
On Thu, May 26, 2011 at 6:05 PM, toon severijns toon.severijns@gmail.com wrote:
Hello all, Does Drupal provide a way to display exposed filter forms automatically
(in
a region of choice) when the respective view is displayed without using
the
"only show when PHP returns TRUE" functionality?
I believe you are talking about Views.
In the basic settings there is an option "Exposed form in block", Change this to yes and in the block you will see an additional block, place it in desired region. Now in the view page you will be able to see the block of filter forms.
-- Sivaji -- [ Drupal support list | http://lists.drupal.org/ ]
Thanks Ted! Alright. Now my next question is: how can i also display the relevant exposed form when displaying the node from a certain view?
Best,
Toon
On Thu, May 26, 2011 at 3:52 PM, Ted ted-drupalists@webfirst.com wrote:
The block settings also allow you to restrict by page/url as well. Specify the paths where your view is located.
Ted
On 5/26/2011 9:36 AM, toon severijns wrote:
I'm sorry i should have been more clear:
Does Drupal provide a way to display exposed filter forms automatically (in a region of choice) *ONLY *when the respective view is displayed without using the "only show when PHP returns TRUE" functionality?
On Thu, May 26, 2011 at 3:28 PM, sivaji j.g sivaji2009@gmail.com wrote:
On Thu, May 26, 2011 at 6:05 PM, toon severijns toon.severijns@gmail.com wrote:
Hello all, Does Drupal provide a way to display exposed filter forms automatically
(in
a region of choice) when the respective view is displayed without using
the
"only show when PHP returns TRUE" functionality?
I believe you are talking about Views.
In the basic settings there is an option "Exposed form in block", Change this to yes and in the block you will see an additional block, place it in desired region. Now in the view page you will be able to see the block of filter forms.
-- Sivaji -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
On 5/26/2011 10:11 AM, toon severijns wrote:
Alright. Now my next question is: how can i also display the relevant exposed form when displaying the node from a certain view?
Do you list the same node in multiple views (with exposed forms)? If not, I can think of a few ways:
Code: create a page-[content type].tpl.php file in your theme and manually insert the form block in the appropriate place.
No code: use pathauto to give nodes of a certain content type (or with certain values in a field using token) common paths. For example, you might have a bunch of product nodes (content type), some of which are clothing, and some shoes (category field). These would have paths like /apparel/nice-shirt, /apparel/wrinkled-pants, and /shoes/blue-suede, etc. Your the exposed form for the clothes view would then be restricted to /apparel/*, and the shoe view would be /shoes/*
How are you expecting this feature to be used?
Ted