Pedro Posada | Views argument dynamic filters

Views argument dynamic filters

Posted on October 19, 2008 - 1:29pm
<< 26 of 50 >>
Submitted by pedro on November 7, 2008 - 3:46pm.

As a small note to dynamic filters, for example:

<?php
$my_view
= views_get_view('my_name');
$my_view->filter[1]['value'] = 1;
$my_view->is_cacheable = 0;
?>

Always use <?php $my_view->is_cacheable = 0;?> after adding filters, fields, arguments or anything dynamically to a view.

Post new comment

The content of this field is kept private and will not be shown publicly.
Please solve the math question. This way we will know you are not a robot.