This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Dylan Rose
Posted Jul 27 - Read on Facebook

Hey guys, I'm wondering about referencing a Layer from Json data. Say I:

1. Have some Json data I want to create buttons out of containing the text for the button + the destination (link)
2. Layers set up in Framer that correspond to the links in the Json data
3. A function that creates a button with a link to the layer via a FlowComponent
4. And a loop that creates a button for each item in the Json data that SHOULD pass in the layer it needs to link to as well. Any ideas on how to go about this? When the data is passed back into the flowComponent it's not being read as a layer:


Koen Bok

I see what you are trying to do. The only thing you are missing is a mapping from a string (name) to an actual layer. I fixed it in this example by creating a Links object that keeps references to each linkable layer:

Read the entire post on Facebook