Join the Webstudio community

Updated 2 months ago

Update Collections

At a glance
We would like to ask for the following:

  1. Add more events/actions/triggers to Collections. Currently it seems the only way to trigger a Collection is on a page load event.
  2. Add dynamic elements to Collections. Would be great if you could inject variables into a collections query string or post body (unless that is already there and if someone can point me to where I would be able to find that)
B
O
V
8 comments
See, our collections is basically a loop over json array. What you asking is "resource variable". You can create new variable and give it resource type. There you can customize url, method, headers and body.
I thiink a better way to frame such discussions is to go from the use case, the "what" not "how".

Better understanding your use case will let us give you a better "how".
From what I understand all you need will be covered via Forms and variables
Meaning you can create any filters in a form and when submitting the form, url will change (that's how web works), then you can bind query/params variables in the resource and use them to filter collection
But its me trying to guess what you wanted.
Yes, will have to play with it a bit more. I am very new using Webstudio. Guess I am trying to ask for more dynamic backend queries so one can write more of an application in the platform. Like control on when the queries execute.

A use case... I have a website when you fill in your zip code and address. Pressing the search button executes a query and displays a page with the result, based on the zip code and address I specified.

Now that is a application, I know that, but how would I do it in Webstudio as it is today. I can add Javascript to the front end and totally do it, but that would be front end Javascript queries. Would love to see the ability for the back end to do this query and generate a result that populates the front end.
A use case... I have a website when you fill in your zip code and address. Pressing the search button executes a query and displays a page with the result, based on the zip code and address I specified.

That's a basic filter we are launching in the next days
all of this seems to be part of it
Add a reply
Sign up and join the conversation on Discord