Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • David Walker 19 posts 90 karma points
    Mar 08, 2022 @ 17:23
    David Walker

    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

  • David Walker 19 posts 90 karma points
    Mar 09, 2022 @ 12:03
    David Walker

    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? :)

Please Sign in or register to post replies

Write your reply to: