Join the Webstudio community

Updated 2 months ago

Amazing Updates Too!

At a glance

The community member who posted the original post is asking if it's possible to change the data resource that goes into a slot based on the URL. A community member responds that this should be possible by defining more specific URLs on each page, and the resource would depend on that and traverse to the global root as a fallback URL. The community member suggests trying this approach and reporting back on how it goes.

amazing updates too! is changing the data resource that go into slot possible? To change it based on url for example
J
1 comment
Not sure I totally understand, but sounds like you want to use a resource in a slot but have different urls depending the page youre on.

Data variables now act like CSS variables in that if you define --background: blue on the parent then --background: red on the child, the later will override the former.

So in theory I think it should work by defining the more specific url on each page and the resource would depend on that and traverse to the Global root as a fallback url.

Please report back, would love to hear how that goes
Add a reply
Sign up and join the conversation on Discord