Views default argument for contextual filters

Created on 19 December 2020, about 4 years ago
Updated 3 August 2023, over 1 year ago

Problem/Motivation

Sometimes you would need to set a default contextual filter value in a view.
Hard-coding a node ID is not portable between environments.
It would be great if we could reference content based on their machine names.

Proposed resolution

Create a ViewsArgumentDefault plugin and expose available machine names.

Remaining tasks

  • Test and RTBC
Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇷🇴Romania reszli Târgu Mureș

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024