3rd Party Widgets & Custom Code ROBERT KIFFE| OMNIUPDATE
Agenda What’s the problem? A Typical Setup Page Specific? Site-Wide? Writing JavaScript in an XML File Writing Server-Side Code in an XML File Hands-On Q&A
What’s the Problem? I need to add ‘code’ to a specific page! I need to add ‘code’ to a bunch of pages! When I add some ‘code’, it breaks my page! JavaScript or Server-Side scripts aren't working!
Individual Pages Content Regions Source Code Editor Assets Components
Individual Pages Head-Code Element Body-Code Element Foot-Code Element Hidden Regions Head-Code Element Body-Code Element Foot-Code Element
Multiple Pages Headcode.inc Footcode.inc Set By Directory Variable Hidden Regions Global Include Files Headcode.inc Footcode.inc Directory Include File Set By Directory Variable Configured in XSL Create Parameter Build Include Code in Desired Location
Multiple Pages Content Regions Include File via Asset
Adding HTML Self-closing tags Missing close tags To an XML Document Make sure your code meets XML syntax requirements Self-closing tags Missing close tags Encode special characters
Adding JavaScript Use CDATA to protect special characters To an XML Document Use CDATA to protect special characters
Adding Server-Side Code To an XML Document Must obey XML syntax PCF Source Code Asset / Component Unless the XSL is specially configured, use an include file XSL Processing Instruction ‘Disable Output Escaping’ Character Maps HTML output method
Let’s Go Hands-On! Travel to http://workshop[#].outc18.com/index.html Replace [#] with the number on your badge Click the DirectEdit link Log in as the level 10 user! Username: admin Password: found on your badge
THANK YOU! PLEASE SHARE YOUR FEEDBACK: WWW.SLIDO.COM #OUTC19