Views Contextual Filters/Filter Default Flag ID

Created on 4 August 2024, 4 months ago

Problem/Motivation

I want to be able to create a view that is based on the current status of the page being viewed. This would allow presentation of a list of users that have flagged a particular page. It could also be used to display related items via added fields to the flag.

Proposed resolution

The ability to identify the current flagged page means that the view needs to know the current flag ID. This may require specification of the flag type.

  • Add a Contextual Filter default value that is the current flag ID. Defaults to 0 if the current page is not flagged.
  • Add Filter that matches the flag ID with the current value.
✨ Feature request
Status

Active

Version

4.0

Component

Views integration

Created by

πŸ‡ΊπŸ‡ΈUnited States bwong

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

Comments & Activities

Production build 0.71.5 2024