Plugin for filtering based on query string parameters

Created on 8 January 2013, over 12 years ago
Updated 11 August 2025, 5 days ago

In a recent project I used menu position to define the position based on a specific content type. However, it happened that we needed two different positions for the same content type, based on the page that is linking to it. Our solution was to add a parameter on the query string with the name of the referral. So assuming that A and B are pages both linking to the content type page C, the final query string would be C?A or C?B.

We developed a small plugin for menu position that basically adds this filtering capabilities: you specify a list of query string keys (separated by new lines) that should be present in the URL in addition to other menu position rules. This could be extended in the future to evaluate the full query string args (including not only the key, but also the value).

Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇭Switzerland matteoagosti

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