Does vData feed support URL parameters?

More
8 years 3 months ago #4383 by Ken Lee
Dear WDMTech,

I have vData 2.1.0. I want to create a JSON feed whose selection criteria include a parameter provided by user when he calls the feed URL.
e.g. mysite.com/index.php?option=com_vdata........&myparam=something
Then my profile could filter records where a field equal to "something".

Is this feature supported in vData?

Thank you.

Please Log in to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #4387 by Daniel
Yes you can do so. Suppose you you need to filter records based on the column name "state" where state value is on. Then you need to append the following two variables to the URL:


column=state
value=on

Let's suppose you want to apply filter on two columns, another column is "featured". You want to fetch records with filtered = 1 only. Then you need to add the following:

column=state|featured
value=on|1

which becomes:

mysite.com/index.php?option=com_vdata&task=get_feeds&type=UuT3Ohz3Vt&column=state|featured&value=on|1

Hope I could precisely explain it?

Thanks
Daniel
Last edit: 8 years 3 months ago by Daniel.

Please Log in to join the conversation.

Cron Job Starts