Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
Views Data
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2007 at 07:14 UTC
Updated:
28 Jan 2008 at 13:01 UTC
Hello Everybody
I want to know how to pass a session variable or cookie to a views filter,
So that views should be automatically select the correct filtering option using session variable.
Thanks in advance
Comments
Comment #1
Eugene Fidelin commentedI have the same question, because i want to store exposed filters in session. This will give users an opportunity not to enter filter when they navigate to view page next time.
Comment #2
catchComment #3
merlinofchaos commentedThis is something you'd do in the argument handling code section.
You could do something like: $view->filters[3]['value'] = $_SESSION['my_stored_value'];
Note that this will only set the default for the exposed filter if you have the right option checked in the exposed filters.
Comment #4
Eugene Fidelin commentedThanx to merlinofchaos
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.