proxy youtube embed | Community
Skip to main content
Level 3
November 30, 2023
Solved

proxy youtube embed

  • November 30, 2023
  • 3 replies
  • 1151 views

I am working on creating proxy component for youtube Embeddable using v2 core Embed. I want to overlay embeddable youtube and remove few ootb fields like Accessibility Label, width, height etc. I tried overlaying the youtube embeddable component and pointing to the core youtube embeddable. Still unable to remove the fields. How can I achieve this?

 

@arunpatidar  @kautuk_sahni 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

Hello @dolly 

 

These fields are appearing because of Sling Resource Merger. You would have already figured that out.

We can use following to hide these fields

  • sling:hideResource ( Boolean)

    Indicates whether the resources should be completely hidden, including its children.

  • sling:hideChildren ( String or String[])

    Contains the child node, or list of child nodes, to hide. The properties of the node will be maintained.

    The wildcard * hides all.

 

reference: https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-merger.html?lang=en#properties

 

You just need to extend the component. Create the node structure until the field you want to hide. Then add sling:hideresource to the field that shouldn't be included in Dialog.

3 replies

arunpatidar
Community Advisor
Community Advisor
December 1, 2023
Arun Patidar
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
December 1, 2023

Hello @dolly 

 

These fields are appearing because of Sling Resource Merger. You would have already figured that out.

We can use following to hide these fields

  • sling:hideResource ( Boolean)

    Indicates whether the resources should be completely hidden, including its children.

  • sling:hideChildren ( String or String[])

    Contains the child node, or list of child nodes, to hide. The properties of the node will be maintained.

    The wildcard * hides all.

 

reference: https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/sling-resource-merger.html?lang=en#properties

 

You just need to extend the component. Create the node structure until the field you want to hide. Then add sling:hideresource to the field that shouldn't be included in Dialog.

Aanchal Sikka
kautuk_sahni
Community Manager
Community Manager
December 4, 2023

@dolly Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni