Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

Share data between widget and controller

Heey,

I have a product detail page. On this page there will be the option to add widgets, which the admin can add. I have a widget which has a related product, how can I share my current product with this widget? Even a ID enough.

Greetings, Jacob

Isn't this the easiest if you store the id of your product in the session? That way you can share it.

Hmm I don't like the idea of storing in the session.

Now I get the parameter from the url and load the product again.

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/