Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Views extra modules provide extra arguments for contextual filters based on session, cookie or token. This extends filter functionality to pass cookie, session variable or token as argument to views.

MODULE DETAILS
--------------
Views Extras allows to create views that accept arguments from session, cache or token. As of now, module provides following type of arguments:

* Session variable from session
Views will accept session variable from the current session to filter out results. Also, in case the session variable is not set, views can use the fallback value and best part is it supports token.
* Cookie variable from cookie
Works in the similar manner, but instead of session variable cookie variable would be used in this case and this also supports token as fallback value.

RECOMMENDED MODULES
-------------------

* TOKEN (https://www.drupal.org/project/token)
When enabled user tokens would be available in configuration settings for arguments.

CONFIGURATION
-------------
* Session variable from session:

* Session variable key: Key of SESSION variable, e.g. for $_SESSION["key"], the key would be "key".

* Fallback value: If session variable is not set, what should be the fallback value. User tokens are supported.

* Cache Maximum Age: As drupal 8 cache api as of now does not support session:name cache context. So, we can additionally provide maximum cache age in case the session variable is updated/changed in between a session.

* Cookie variable from cookie
* Cookie variable key: Key of COOKIE variable, e.g. for $_COOKIE["Drupal_visitor_key"],
the key would be "key".
Why we are appending prefix "Drupal_visitor"?
Reference: https://api.drupal.org/api/drupal/core%21modules%21user%21user.module/function/user_cookie_save/8.5.x

* Fallback value: If cookie variable is not set, what should be the fallback value. User tokens are supported.

MAINTAINERS
-----------
Current maintainers:

* Purushotam Rai (https://drupal.org/user/3193859)

This project has been sponsored by:
* QED42
QED42 is a web development agency focussed on helping organisations and individuals reach their potential, most of our work is in the space of publishing, e-commerce, social and enterprise.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
3.0.0 Stable Dec 7, 2023
3.0.0-beta1 Pre-release Oct 24, 2023
3.x-dev Dev Oct 24, 2023