Copied to clipboard

Flag this post as spam?

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


  • Jörg 9 posts 90 karma points
    Feb 21, 2020 @ 11:46
    Jörg
    0

    V8: Culture of IContent object

    I'm struggling to get hold of the culture of an IContent object that does not make use of Language Variants. It's the property shown in the screenshot below. Shouldn't that be available from the database as well? I'm aware that reverting to IPublishedContent could be a workaround, but what if the object is not published yet? It should have a culture anyway (either set or inherited from its parent), shouldn't it?

    enter image description here

  • Jörg 9 posts 90 karma points
    Feb 25, 2020 @ 08:29
    Jörg
    0

    Nobody any idea to point me in the right direction?

  • Maarten Peters 5 posts 25 karma points
    May 19, 2020 @ 09:02
    Maarten Peters
    0

    I have the same challenge, anyone a idea?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    May 19, 2020 @ 09:21
    Dan Diplo
    0

    Just guessing, but do you need to use the DomainService to get the assigned domains for it?

    https://our.umbraco.com/apidocs/v8/csharp/api/Umbraco.Core.Services.Implement.DomainService.html

  • Maarten Peters 5 posts 25 karma points
    May 19, 2020 @ 12:20
    Maarten Peters
    0

    The domainservice does not return any domains for subnodes; only for the domain root nodes. And to check all the ancestors for IContent will result probally in bad performance.

  • Cimplex 113 posts 576 karma points
    Oct 20, 2020 @ 14:44
    Cimplex
    0

    Any luck solving this Jörg?

Please Sign in or register to post replies

Write your reply to:

Draft