Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sitecore rendering paramaters get

var selectedItemId = RenderingContext.Current.Rendering.Parameters["Background"];
var selectedItem = RenderingContext.Current.ContextItem.Database.GetItem(ID.Parse(Guid.Parse(selectedItemId)));
    var parameter = selectedItem["Value"];
Source by sitecore.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #sitecore #rendering #paramaters
ADD COMMENT
Topic
Name
8+9 =