I am creating a script to fetch rendering parameters of a sublayout and edit data template item field data based on the values of fields of rendering parameters.
I was able to fetch renderings in .aspx page using the code
Sitecore.Layouts.RenderingReference[] renderings = ProfileItemWithLanguage.Visualization.GetRenderings(Sitecore.Context.Device, true);
But this is always giving me shared renderings. I have different data in different languages and need to fetch language specific data.
Please advice.