- 🇮🇩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
over 1 year ago 2:34pm 25 November 2023 - 🇮🇳India venugopp Bangalore
Refer the sample views with the module to get some examples for contextual filter.
- Status changed to Needs work
15 days ago 2:37pm 25 March 2025 - 🇨🇦Canada colan Toronto 🇨🇦
This is really a documentation issue as it's not obvious how to do this. Here's what we need to do:
- There's no example in the README with a contextual filter in the JSON File config field. Let's add one with the info from #3170134-2: Contextual Filter Path Value to JSON Path → .
- Change the default branch from 8.x-1.x to 2.0.x (because clicking on Source code from the project page still take you to 8.x-1.x).
- Add a documentation link from the project page (so that it shows up on the right sidebar). Should link to https://git.drupalcode.org/project/views_json_source/-/blob/2.0.x/README...
- Convert README.txt to README.md (optional, but would be formatted nicely in GitLab). If doing this, also update the link above.
- 🇨🇦Canada colan Toronto 🇨🇦
If someone makes me a co-maintainer, I can help with this stuff.