Copied to clipboard

Flag this post as spam?

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


  • Peter Laurie 47 posts 121 karma points
    Sep 17, 2024 @ 11:38
    Peter Laurie
    0

    Accessing Published Content from another page in Block Grid editor

    HI, I am starting to create Block Grid components for the Block Grid and to place them in to Rich text content in Umbraco 13.

    One aspect I have not been able to resolve so far is how to load in the content from another page and display in in the CMS

    For example, our content editors would like to place a text snippet from our website settings page anywhere they would like in the text. To do enable this I have created a block component that get and displays the text externally. This works a treat.

    But I cannot so far get it to render internally.

    I have tried various functions so far to get it from contentResource but with no success

    contentResource.getById(1116).then((data) => {
    console.log('contentResource.getById data', data, data.properties);
    angular.forEach(data.properties, (property) => {
      console.log("PROPERTY IS:::::: ", property);
    });});
    

    Any feedback and guidance on this would be appreciated.

    Thank you in advance

    Kind regards,

    Pete

Please Sign in or register to post replies

Write your reply to:

Draft