PITFALLS FOR CASCADE      NEWBIES      BY LISA HALL
AGENDA/OUTLINE• 6 Potential Pitfalls  •   Top Data Definition creation Pitfall  •   Top CSS Pitfall  •   Top 2 - Format/Ve...
DATA DEFINITION• Content Render Depth
CSS/FILES2 STEPS• [system-asset] tags• Check „Rewrite page links‟
‘SOLVE THE PATH’Incorrect path to Current Page Node -#set($page = $_XPathTool.selectSingleNode ($contentRoot,“index-page/c...
SOLUTIONCorrect path to Current Page Node -#set($data = $_XPathTool.selectSingleNode($contentRoot,“system-index-block/call...
FORMATS-SCRIPTSIn addition to incorrect Path names, another  common format issue is assigning values.String#set($item1 = $...
POP QUIZQ1. Which item should be displayed here?$_SerializerTool.serialize(“?")#set($item1 = $_XPathTool.selectSingleNode(...
POP QUIZQ2. What will each of these display?<h1>$item1</h1><h1>$item2</h1>#set($item1 = $_XPathTool.selectSingleNode($page...
TIDY UP…?Background images from your CSS file not displayingproperly?
…OR NOT     T WO O P T I O N S• Page-level• Admin -level
DON‟T LET THIS HAPPEN TO YOU!
…BUT IF IT DOES      Go Back!!!
EFFICIENT RENDERING TIMESWhy should you care?
XML OUTPUT<calling-page>  <system-page>       <dynamic-metadata>          <name>topic</name>          <value>Cascade Pitfa...
FORMATS - ADVANCEDA COMMON APPROACH
A COMMON APPROACH - CONT.#foreach($metadata in $dynamic-metadata)  #if(metadata.getChild("name") =="speaker")      #set($i...
A BETTER WAYEfficient Programming:#set($item = $_XPathTool.selectNode($page,"dynamic-metadata[name=speaker]/value").value)
METRICS TO THE RESCUE!T WO O P T I O N S
INDEX BLOCKS WEIGHING YOU DOWN?
THERE, THAT’S BETTERSMALLER INDEX BLOCKS = FASTER RENDERING TIMES
WAYS TO CREATE SMALLER BLOCKS   THE SKY IS THE LIMIT ON MAX ASSETS
IS THAT INLINE XML REALLY       NECESSARY?
QUESTIONS?
IMAGE RESOURCES                     http://blog.copdfoundation.org/questions-about-insurance/c-users-sschlegel-pictures-qu...
Pitfalls to Avoid for Cascade Server Newbies by Lisa Hall
Pitfalls to Avoid for Cascade Server Newbies by Lisa Hall
Upcoming SlideShare
Loading in...5
×

Pitfalls to Avoid for Cascade Server Newbies by Lisa Hall

1,501

Published on

This presentation will be geared towards new technical users of Cascade Server. However, more experienced users will be presented with best practices and tips on how implementations can be improved. During this session, we will demonstrate the key issues that can make your CMS render times more efficient. We will also demonstrate the top 5 issues that you will probably report to the help forum.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,501
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Welcome to the presentation – mentionhannon hill team members in photos, keep count
  • Demo 1 – Content Render Depth Example - index-dynamic (Home) , point out the other index page the difference (callout is missing) - Data Definition of index-dynamic (Home) (view in edit/system and navigate to it) - Callout block set to 0 - Set to Content Depth to 2 and watch it appear.
  • System Asset tags are important because if you move the files around, Cascade will still know where they are, including if you change file names, etc.Demo 2 – System-asset tags - show how to add them (copy/paste – find/replace) - click save - Show on the page, no background image button - Check Rewrite links on the CSS file and then watch the buttons appear.
  • Give time and ask them to raise their hands if they have the answer.
  • You really shouldn’t use Inline styles, but for special circumstances or situations where you feel you have to:Demo 3 – INLINE STYLES - Show the styles in callout1 - click save - no changes in the code
  • Demo 3 – iNLINE STYLES cont. - At the block/page level – uncheck Tidy HTML OR option 2 - global settings -&gt; content -&gt; uncheck enable HTML content
  • Demo 4 – Saving Formats -Edit a format (archive) - open and edit another page - try to save, witness the red bar
  • Demo 4 continued- Saving Format - Hit the Back button and save again
  • Customers, coworkers, students, will appreciate being able to navigate quickly and efficiently. Long loading times, means people get bored or frustrated and move on. Perhaps missing valuable content on your website.
  • Typical XML Output – dynamic metadata. What if there is a long list? What if you want to just get the speaker name, how do you do it?
  • A common approach is a ForEach loop
  • Takes a long time and will cause your page to load slowly
  • Much Faster and more efficient
  • Demo 5 – Metrics Show the SiteMap page – click metrics tag Show the slow region (Now we know where to speed up the page)
  • Large index blocks which contain the information from many files and folders will slow down your page and keep you grounded
  • Smaller index blocks (less assets) will keep you running and mobile
  • Demo 6 – Max Assets - Show the number of assets in the Metrics Tab - Reduce the max assets, by unclicking unnecessary items, and limiting the number of assets returned - show the faster page render time
  • Demo 6 – Inline XML - Show the speed time of the page - show the XML for the SiteMap page and all the inline data that you don’t need - go back to index block and uncheck show XML inline - show the faster page render time
  • Pitfalls to Avoid for Cascade Server Newbies by Lisa Hall

    1. 1. PITFALLS FOR CASCADE NEWBIES BY LISA HALL
    2. 2. AGENDA/OUTLINE• 6 Potential Pitfalls • Top Data Definition creation Pitfall • Top CSS Pitfall • Top 2 - Format/Velocity Pitfall • Top Page Data Definition Pitfall • The Most Dangerous Pitfall of All• Content Render Times - Efficiency
    3. 3. DATA DEFINITION• Content Render Depth
    4. 4. CSS/FILES2 STEPS• [system-asset] tags• Check „Rewrite page links‟
    5. 5. ‘SOLVE THE PATH’Incorrect path to Current Page Node -#set($page = $_XPathTool.selectSingleNode ($contentRoot,“index-page/calling-system/page-system/”)Directions: Unscramble and Re-order the path above
    6. 6. SOLUTIONCorrect path to Current Page Node -#set($data = $_XPathTool.selectSingleNode($contentRoot,“system-index-block/calling-page/system-page/”)
    7. 7. FORMATS-SCRIPTSIn addition to incorrect Path names, another common format issue is assigning values.String#set($item1 = $_XPathTool.selectSingleNode($page, "name").value)Node#set($item2 = $_XPathTool.selectSingleNode($page, "name"))
    8. 8. POP QUIZQ1. Which item should be displayed here?$_SerializerTool.serialize(“?")#set($item1 = $_XPathTool.selectSingleNode($page,"name").value)#set($item2 = $_XPathTool.selectSingleNode($page, "name"))
    9. 9. POP QUIZQ2. What will each of these display?<h1>$item1</h1><h1>$item2</h1>#set($item1 = $_XPathTool.selectSingleNode($page,"name").value)#set($item2 = $_XPathTool.selectSingleNode($page, "name"))
    10. 10. TIDY UP…?Background images from your CSS file not displayingproperly?
    11. 11. …OR NOT T WO O P T I O N S• Page-level• Admin -level
    12. 12. DON‟T LET THIS HAPPEN TO YOU!
    13. 13. …BUT IF IT DOES Go Back!!!
    14. 14. EFFICIENT RENDERING TIMESWhy should you care?
    15. 15. XML OUTPUT<calling-page> <system-page> <dynamic-metadata> <name>topic</name> <value>Cascade Pitfalls</value> </dynamic-metadata> <dynamic-metadata> <name>speaker</name> <value>Lisa</value> </dynamic-metadata>
    16. 16. FORMATS - ADVANCEDA COMMON APPROACH
    17. 17. A COMMON APPROACH - CONT.#foreach($metadata in $dynamic-metadata) #if(metadata.getChild("name") =="speaker") #set($item = metadata.getChild("value").value)#end
    18. 18. A BETTER WAYEfficient Programming:#set($item = $_XPathTool.selectNode($page,"dynamic-metadata[name=speaker]/value").value)
    19. 19. METRICS TO THE RESCUE!T WO O P T I O N S
    20. 20. INDEX BLOCKS WEIGHING YOU DOWN?
    21. 21. THERE, THAT’S BETTERSMALLER INDEX BLOCKS = FASTER RENDERING TIMES
    22. 22. WAYS TO CREATE SMALLER BLOCKS THE SKY IS THE LIMIT ON MAX ASSETS
    23. 23. IS THAT INLINE XML REALLY NECESSARY?
    24. 24. QUESTIONS?
    25. 25. IMAGE RESOURCES http://blog.copdfoundation.org/questions-about-insurance/c-users-sschlegel-pictures-question-mark-man/ http://www.instantlyfallasleep.com/looping-dream.html
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×