Skip to main content
added 13 characters in body; edited tags
Source Link
Marek Musielak
  • 24.2k
  • 3
  • 31
  • 64

I am using sitecoreSitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But iI am able to see only which are present in final renderings but not able see the renderings from page design,.

How can I access the page design renderings. used 'renderingItem.Visualization.GetRenderings(Sitecore.Context.Device, true);'.

I tried:

renderingItem.Visualization.GetRenderings(Sitecore.Context.Device, true);

I am using sitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But i am able to see only which are present in final renderings but not able see the renderings from page design, How can I access the page design renderings. used 'renderingItem.Visualization.GetRenderings(Sitecore.Context.Device, true);'.

I am using Sitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But I am able to see only which are present in final renderings but not able see the renderings from page design.

How can I access the page design renderings.

I tried:

renderingItem.Visualization.GetRenderings(Sitecore.Context.Device, true);
added 83 characters in body
Source Link

I am using sitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But i am able to see only which are present in final renderings but not able see the renderings from page design, How can I access the page design renderings. used 'renderingItem.Visualization.GetRenderings(Sitecore.Context.Device, true);'.

I am using sitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But i am able to see only which are present in final renderings but not able see the renderings from page design, How can I access the page design renderings.

I am using sitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But i am able to see only which are present in final renderings but not able see the renderings from page design, How can I access the page design renderings. used 'renderingItem.Visualization.GetRenderings(Sitecore.Context.Device, true);'.

Source Link

Read all the renderings from the context item including page design renderings

I am using sitecore 10.3 with SXA, I am trying to read all the renderings of the current item and get datasource of a required rendering item based on the item ID, But i am able to see only which are present in final renderings but not able see the renderings from page design, How can I access the page design renderings.