Copied to clipboard

Flag this post as spam?

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


  • Jeroen Oostwouder 100 posts 296 karma points
    Jul 03, 2023 @ 12:08
    Jeroen Oostwouder
    0

    Reasons why OEmbedPicker is greyed out?

    Hi there,

    I'm having a weird issue with the OEmbed Picker. I'm using it on a block for the blockgrid-editor, in Umbraco 10(.4).

    So I have an element-type, with only 1 property. That's the OEmbedPicker.

    I also have a composition with my BlockGrid Editor, and I have several doctypes using this composition.

    It all works like a charm on almost all doctypes, except for 2. They are seemingly regular doctypes, using some of the same compositions the other doctypes are using.

    But when I try to add the elementtype to the grid-content, the picker stays grey.

    I've tried this on multiple positions within my tree, but it all comes down to these two doctypes. All other doctypes are working fine. I can add the element to the blockgrid, and click on the picker.

    What are common reasons for this editor to stay grey? I don't get a console error or something.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jul 03, 2023 @ 12:09
    Dave Woestenborghs
    0

    Hi Jeroen,

    Can you show your doctype setup ?

    Dave

  • Jeroen Oostwouder 100 posts 296 karma points
    Jul 03, 2023 @ 12:13
    Jeroen Oostwouder
    0

    Hi Dave,

    what's the best way to show that? It's a bunch of compositions, so it's not that easy to make screenshots or type it out.

    edit: maybe something like this?

    The doctype not working: https://ibb.co/3NQCZ1L

    The elementtype used in the grid: https://ibb.co/1ZntHmr

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jul 03, 2023 @ 12:20
    Dave Woestenborghs
    0

    Hi Jeroen,

    Probably some screenshot of your config.

    And where it goes wrong.

    Dave

  • Jeroen Oostwouder 100 posts 296 karma points
    Jul 03, 2023 @ 12:23
    Jeroen Oostwouder
    0

    I just editted the post below with 2 screenshots.

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jul 03, 2023 @ 12:49
    Dave Woestenborghs
    0

    Hi Jeroen,

    So if I understand correctly you have a composition where you have a block grid editor property on (and maybe others).

    You added that to several doctypes as a composition.

    When you try to add a block that has the embed picker to the block grid on it on a page of a doctype using that composition the Oembed picker stays gray ?

    Dave

  • Jeroen Oostwouder 100 posts 296 karma points
    Jul 03, 2023 @ 13:20
    Jeroen Oostwouder
    0

    Correct.

    And I'm just trying to find a reason why some pages have this problem.

    At this point, I have a new doctype: "My Page" It has a BlockGrid property via a composition, and a seperate EmbedPicker.

    If I create a new "My Page" node, the EmbedPicker-field works fine, but the one in the BlockGrid does not. The rectangle with dashed border and + in the middle stays grey.

    If I create a new "Textpage" node (which contains the same Composition with the BlockGrid property), I can add the "video block" with the EmbedPicker and it works fine.

    Just as a test, I've copied the "dtJobOverview" doctype (from the screenshot), and it had the same problem. I then:

    • Changed the Alias
    • Changed the name
    • Removed ALL compositions
    • Removed the template
    • Changed "Allow vary by culture"

    And still, the EmbedPicker is disabled via the BlockGrid. I can't find any reason why it would be disabled.

  • Jeroen Oostwouder 100 posts 296 karma points
    Jul 03, 2023 @ 13:33
    Jeroen Oostwouder
    100

    Well, I might just be answering my own question :)

    The "dtJobOverview" doctype didn't "Allow vary by culture", while my site had 2 languages available.

    So:

    • 2 Languages available
    • "GridBlock" Element type | Allow vary by culture: true
    • Doctype using the BlockGrid editor | Allow vary by culture: false

    This way, the editor is disabled (eventhough I was working in the "default language").

    When I turned on "Allow vary by culture" on the doctype, the EmbedPicker was enabled in the BlockGrid.

    Strange problem, but I guess it's an Umbraco-thing, and not an EmbedPicker thing.

    Anyway, thank you for your fast responses!

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Jul 03, 2023 @ 13:35
    Dave Woestenborghs
    1

    Hi Jeroen,

    I was already thinking it had something to with culture variations and the UI not responding correctly to that.

    Glad to hear you find a solution to your problem.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft