TypeRocket / core

TypeRocket core source files where all the magic lives.
https://typerocket.com
36 stars 21 forks source link

Reference component data from within another component #11

Closed egrobler closed 6 years ago

egrobler commented 6 years ago

I am fairly new to TypeRocket, so please bear with me. I've created a simple component much like the Content Component that comes bundled for the Page Builder. Now I have another component with a search field, where one can add pages in the component. And I would like to get the $data['content'] from that other component and pull it's value into this one. The only way I could manage to do it was to create a query that queries the post_meta table for the page_id and 'builder' meta_key. Isn't there supposed to be a more elegant way to do this?

egrobler commented 6 years ago

Think I added this to the wrong repo. Sorry! :)