Use views contextual filter in JSON File path

Created on 3 October 2022, about 2 years ago
Updated 25 November 2023, 12 months ago

Hi

Im using Token to set a dynamical url for JSON File path but now I need to pass context filter. I tried with mustache syntaxis {{ raw_argument:null }}with no success. Is there a correct or an alternative to pass context filter? or someone knows if a context filter token exist?

Thanks

Feature request
Status

Closed: won't fix

Version

1.4

Component

Module

Created by

🇲🇽Mexico delbozkester

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.

  • 🇮🇩Indonesia tinohuda

    Hi,

    I have JSON like this:

    [
        {
            "counter": "1",
            "type": "typenode-A",
            "uid": "username2",
            "moderation_state": "Verify"
        },
        {
            "counter": "2",
            "type": "typenode-A",
            "uid": "username2",
            "moderation_state": "Valid"
        }
    ]
    

    how to implement uid value as contextual filter?

    hope anyone can help, thank you before.

  • 🇮🇩Indonesia tinohuda

    #3 [SOLVED]

    i've done this by adding % at the end of Query Options JSON File form and create webform element using view type and add token [current-user:account-name] as view arguments.

    Thank you.

  • Status changed to Closed: won't fix 12 months ago
  • 🇮🇳India venugopp Bangalore

    Refer the sample views with the module to get some examples for contextual filter.

Production build 0.71.5 2024