Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hopefully this is just a n00b question!
When rendering a normal page view, I can use a Controller to call an external api, and pass in that extra information to the view.
I'm now tidying up my site to use Blocklists which allow the CMS users to control the building of their pages.
But I can't figure the correct way to populate my blocklist view with any external api data, as there is no corresponding Controller.
Is there such a controller - and any examples out there? Or am I barking up the wrong tree?
Many thanks
Just to follow up here - I'm calling a bespoke Helper method from the Blocklist partial which will call an external API and populate a variable in my view.
This works but I'm not sure if it's the correct approach to take? :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Rendering External API data in a Blocklist view
Hopefully this is just a n00b question!
When rendering a normal page view, I can use a Controller to call an external api, and pass in that extra information to the view.
I'm now tidying up my site to use Blocklists which allow the CMS users to control the building of their pages.
But I can't figure the correct way to populate my blocklist view with any external api data, as there is no corresponding Controller.
Is there such a controller - and any examples out there? Or am I barking up the wrong tree?
Many thanks
Just to follow up here - I'm calling a bespoke Helper method from the Blocklist partial which will call an external API and populate a variable in my view.
This works but I'm not sure if it's the correct approach to take? :)
is working on a reply...