Copied to clipboard

Flag this post as spam?

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


  • Al Burns 4 posts 74 karma points
    Feb 16, 2022 @ 16:15
    Al Burns
    0

    How to access document type properties from custom RTE embed provider

    Hi. I have created a custom OEmbed provider, derived from AbstractOEmbedProvider, so I can allow editors to add custom URLs to the embed option of the rich text editor.

    I would also like to access other properties on the containing document type, such as an image, but do not know how to achieve this from inside the custom provider. If I try using UmbracoContext.Current.PageId then this just returns null (probably because I am not actually requesting to view the page).

    Any assistance would be appreciated, thanks.

Please Sign in or register to post replies

Write your reply to:

Draft