Search
 
SCRIPT & CODE EXAMPLE
 

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"];
Comment

PREVIOUS NEXT
Code Example
Javascript :: A fatal JavaScript error has occurred. Should we send an error report 
Javascript :: Javascript swap old and new method 
Javascript :: document.queryselector scrolltop 
Javascript :: js multi line cmmetn 
Javascript :: Create A React State 
Javascript :: (node:3644) UnhandledPromiseRejectionWarning: TypeError [EMOJI_TYPE]: Emoji must be a string or GuildEmoji/ReactionEmoji 
Javascript :: shadow generator react native 
Javascript :: associative array add new key and value js 
Javascript :: js shallow copy 
Javascript :: javascript getter 
Javascript :: reactjs facebook login popup trigger on load page 
Javascript :: remove string character in center javascript 
Javascript :: jQuery download video from URL 
Javascript :: Implementing state lifecycle in react class component 
Javascript :: localstorage.setitem 
Javascript :: express ubuntu ERR_CONNECTION_REFUSED 
Javascript :: google scripts string split 
Javascript :: js array reduce 
Javascript :: expo cli vs react native cli 
Javascript :: vue global computed property 
Javascript :: palindrome string js 
Javascript :: puppeteer waitforselector 
Javascript :: ondragover js 
Javascript :: how to get ip address and port from url in javascript 
Javascript :: regex match between quotes without escape 
Javascript :: jquery validation date min max 
Javascript :: form serialze submit button 
Javascript :: js compare tow object values 
Javascript :: nodejs stream 
Javascript :: Font Size changed from device OS react native app 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =