Allow the excluding behavior to be temporarily paused

Created on 17 August 2015, about 9 years ago
Updated 22 June 2023, over 1 year ago

I have a block that displays a series of tabs, each one containing a view. Each tab basically represents articles that have been tagged with a certain category. I am also using Views Exclude Previous to ensure that articles which are rendered elsewhere on the page (e.g. the main content) don't show up in these views.

The problem is that Views Exclude Previous also winds up excluding articles from later tabs if they appeared in the first tab. I don't want this behavior, since if an article is tagged with multiple categories, it's supposed to appear in multiple tabs. I only want to exclude articles rendered elsewhere on the page.

I propose adding API functions views_exclude_previous_pause_excluding() and views_exclude_previous_resume_excluding() which can be used to temporarily pause the excluding behavior. That way I can call them before and after my view is rendered, and therefore get the behavior I want.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States David_Rothstein

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