Copied to clipboard

Flag this post as spam?

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


  • Jason 17 posts 167 karma points
    Jun 01, 2023 @ 20:42
    Jason
    0

    How to Retrieve Grid Elements using .Net Client Library

    I am using the Umbraco.Heartcore.Client.Net library to retrieve content from Heartcore using the ContentDeliveryService and am wondering how to retrieve grid content.

    Does the client library already contain serialization and models for grids - I haven't been able to find that in the docs?

    Thanks,

    Jason

  • Lindow 154 posts 1301 karma points
    Jun 01, 2023 @ 22:08
    Lindow
    0

    Hi again.

    I very much doubt it, as grid editors in Heartcore differ a bit from the standard CMS - https://docs.umbraco.com/umbraco-heartcore/backoffice/grid-editors

    Also, it's a fairly new feature and I can't see any PRs for it on the .net repo.

  • Jason 17 posts 167 karma points
    Jun 01, 2023 @ 22:41
    Jason
    0

    Thanks again!

    I have just found this which would seem to handle grids quite nicely and can be extended to support custom grid editors:

    https://github.com/skybrud/Skybrud.Umbraco.GridData/tree/v5/main

    I am yet to test it out but will experiment with it today.

    Jason

  • Jason 17 posts 167 karma points
    Jun 02, 2023 @ 23:44
    Jason
    0

    Unfortunately, the package I referenced is not designed to work in a headless environment.

    So, when dealing with grid elements from Heartcore, what is the recommended approach for interpreting and rendering that content? Use dynamics?

  • Lindow 154 posts 1301 karma points
    Jun 03, 2023 @ 13:32
    Lindow
    0

    I don't have an answer for this question but I can see that you've asked on the GitHub repo.

    The Heartcore team should get back to you on that.

Please Sign in or register to post replies

Write your reply to:

Draft