Timeline for Is there a way to identify current layout details with renderings?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 26, 2018 at 10:01 | vote | accept | Santosh Poojari | ||
Nov 24, 2016 at 22:53 | vote | accept | Santosh Poojari | ||
Nov 24, 2016 at 22:53 | |||||
Nov 24, 2016 at 9:48 | history | edited | Dmytro Shevchenko | CC BY-SA 3.0 |
added 271 characters in body
|
Nov 24, 2016 at 9:39 | comment | added | phani |
@DmytroShevchenko here you go :) Sitecore.Data.Items.Item item = context.GetItem(layoutId); var fieldValue = item["FieldName"];
|
|
Nov 24, 2016 at 8:10 | comment | added | Dmytro Shevchenko | In my opinion, without a code sample, your answer is incomplete. | |
Nov 24, 2016 at 8:05 | comment | added | phani | From Sitecore perspective LayoutId is just a GUID and we can use it to retrieve the LayoutItem using Sitecore Data API and pull its fields. John West blog gives multiple ways of accessing it. | |
Nov 24, 2016 at 7:51 | comment | added | Dmytro Shevchenko | Could you add a code sample for accessing current layout details (such as its name)? | |
Nov 24, 2016 at 7:36 | history | answered | phani | CC BY-SA 3.0 |