Thursday, 14 January 2021

Sitecore | SXA | Access Drop link and link field items in Scribban

  • Droplist type     

    • {{sc_raw i_item "fieldName"}}"
  • Droplink (one child item) 
  •  We can get the item and then read value from child item: 
    • {{- childitem=sc_follow i_item "fieldName" -}} 
    • {{sc_raw childitem "childItemfieldName"}}"
  • we can read Inline with the below:
    • {{sc_follow i_item "fieldName" | sc_raw "childItemfieldName"}}
  • Tree link (multiple sub child items) 
  • We can get all items as a collection
    • {{for i_child in (sc_followmany i_item "fieldName") }}.

Extracting Nupkg files using command line

Rename it to zip first then extract files as below 1.     Rename-Item -Path A_Package.nupkg -NewName A_Package.zip 2.     Make sure to repla...