Timeline for Sitecore.Context.Item is Overwritten by RenderingContext.Current.Rendering
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 29, 2020 at 10:45 | comment | added | Tuananhcwrs | Hello there, I'm following this sitecore.stackexchange.com/questions/6251/… to run a whole pipeline and success with it. However, I always have to have this "@Html.Sitecore().SwitchContextItem(myitem) " in the rendering before running the pipeline. Is it possible to use ContextItemSwitcher in the helper code so that the "@Html.Sitecore().CurrentItem" will refer to myItem. I tried and failed. Thanks! | |
Jan 16, 2018 at 10:51 | vote | accept | rams | ||
Jan 16, 2018 at 10:51 | |||||
Jan 12, 2018 at 6:27 | history | answered | Serhii Shushliapin | CC BY-SA 3.0 |