This session will explore several tips and tricks to aid developers with load time of index blocks via RSS feed published index blocks, increase accessibility and responsive design flexibility of WYSIWYG regions through use of YUI 3 CSS Grids templates and explore some tricks to help with velocity format testing.
08448380779 Call Girls In Friends Colony Women Seeking Men
Grids and Pieces by Alvin Chao
1. <presentation>
Grids & Pieces:
Minimize Load Time & Increase Accessibility with RSS & CSS
Alvin Chao - @chaoaj
2. Pieces + Grids
• Optimizing Feed blocks:
• Folder vs. Content Type index blocks in 6.x and 7.x
• RSS feed based index blocks
• Installing Velocity showcase app to aid in testing
formats
• Offline testing of certain Velocity Formats / Tools
• YUI3 CSS Grids
• Overview
• Technical details
• Examples
3. RSS content Index blocks
• Create a page of xml type output and use a folder
index block as the default region and use a pass-
through template(similar to an SSI include template)
like this:
• <xhtml-block><system-region
name="DEFAULT"/></xhtml-block>
• Publish this out to your test server
• Create a new Block of type Feed in Cascade, set
the Feed Url to the url of the block you just published
above and you now have an rss feed of your
content type for your internal use or to allow for
external consumption
4. Page Load times:
News: 1251 news items
Events: 1504 events
Index Type Combo Page News Block Load Event Block Load
Load Time (sec) Time (sec) Time (sec)
6.10.9 Folder 40.043 16.267 22.269
7.0.1 Folder 14.354 5.582 7.434
6.10.9 CT Index 26.628 12.351 13.015
7.0.1 CT Index 1.563 0.172 0.171
6.10.9 Folder RSS 3.224 0.565 0.419
7.0.1 Folder RSS 1.886 0.328 0.346
6. Velocity Showcase app
• Go to http://velocity.apache.org/download.cgi
• Download the Velocity-tools 2.0 and Extract
• Find the /examples/showcase.war
• Move this war file into the tomcat deployment
folder for your test Cascade instance and restart
the server / Cascade
• Your new app is deployed to
http://<yourserver>/showcase/
7. Load Showcase in Eclipse
• Install eclipse from http://eclipse.org
• Start Eclipse and go to Java EE perspective
• File – Import – Web- War file set runtime to Apache
Tomcat 6
• Run using a Tomcat Configuration
8. Velocity Showcase examples
• Date Tool:
• Can use this to test formatting a date
• Escape Tool:
• <p> This is an example − we ate at a café.</p>
• LoopTool
• Can use a lot of basic Velocity script in this example to test
looping and comparison tests
10. YUI3 CSS GrIDS
• A W3C Compliant CSS Grid system
• Allows for dynamic regions for Responsive Design and also
changing dynamic data
• The Documentation:
http://yuilibrary.com/yui/docs/cssgrids/
• The Tools: Grid Builder:
http://developer.yahoo.com/yui/grids/builder/
• The Bottom line – one line to add to an existing
page:
• <link rel="stylesheet" type="text/css"
href="http://yui.yahooapis.com/3.6.0/build/cssgrids/grids-
min.css">