[consulting] problem in views filter

sagar ramgade sagar_ramgade at yahoo.com
Mon Jun 7 12:19:17 UTC 2010


Hi Siddarth,
As far i know views argument itself filters the content based on the arguments passed.Any reason you would like to this.
RegardsSagar
--- On Mon, 7/6/10, consulting-request at drupal.org <consulting-request at drupal.org> wrote:

From: consulting-request at drupal.org <consulting-request at drupal.org>
Subject: consulting Digest, Vol 53, Issue 9
To: consulting at drupal.org
Date: Monday, 7 June, 2010, 5:30 PM

Send consulting mailing list submissions to
    consulting at drupal.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.drupal.org/mailman/listinfo/consulting
or, via email, send a message with subject or body 'help' to
    consulting-request at drupal.org

You can reach the person managing the list at
    consulting-owner at drupal.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of consulting digest..."


Today's Topics:

   1. problem in views filter (sidharth relhan)


----------------------------------------------------------------------

Message: 1
Date: Sun, 6 Jun 2010 22:08:02 +0530
From: sidharth relhan <sidhartharelhan at gmail.com>
Subject: [consulting] problem in views filter
To: consulting at drupal.org
Message-ID:
    <AANLkTinVLoT3ChSJ7LzSwXOEysv84FS8Z0Oqd1EACqxb at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

hi ..
i am facing a problem in view filters. actually i have create a view and it
has 3 argument. i want that these argument are used as value in filter.

i tried this code but it is not working.
if any body has solution please post it. I am very thankful.
Regards

<?php
if ($args[0]) {
    $view->filter[0]['value'] = $args[0]; // set the value of filter[0]
}

if ($args[1]) {
    $view->filter[1]['value'] = $args[1]; // set the value of filter[1]
}

$view->is_cacheable = 0;
?>

if any body has solution please post it. I am very thankful.
Regards
Sidharth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/consulting/attachments/20100606/454005e2/attachment-0001.html 

------------------------------

_______________________________________________
consulting mailing list
consulting at drupal.org
http://lists.drupal.org/mailman/listinfo/consulting


End of consulting Digest, Vol 53, Issue 9
*****************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/consulting/attachments/20100607/aa68c4d3/attachment.html 


More information about the consulting mailing list