Download presentation
Presentation is loading. Please wait.
Published byAmie Warren Modified over 9 years ago
1
ALVIN CHAO - @CHAOAJ GRIDS & PIECES : MINIMIZE LOAD TIME & INCREASE ACCESSIBILITY WITH RSS & CSS
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: 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 TypeCombo Page Load Time (sec) News Block Load Time (sec) Event Block Load Time (sec) 6.10.9 Folder40.04316.26722.269 7.0.1 Folder14.3545.5827.434 6.10.9 CT Index26.62812.35113.015 7.0.1 CT Index 1.5630.1720.171 6.10.9 Folder RSS3.2240.5650.419 7.0.1 Folder RSS 1.8860.3280.346
5
The Final Frontier
6
VELOCITY SHOWCASE APP Go to http://velocity.apache.org/download.cgihttp://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:// /showcase/
7
LOAD SHOWCASE IN ECLIPSE Install eclipse from http://eclipse.orghttp://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: This is an example − we ate at a café. LoopTool Can use a lot of basic Velocity script in this example to test looping and comparison tests
9
Give me a
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/ http://yuilibrary.com/yui/docs/cssgrids/ The Tools: Grid Builder: http://developer.yahoo.com/yui/grids/builder/ http://developer.yahoo.com/yui/grids/builder/ The Bottom line – one line to add to an existing page:
11
YUI LAYOUTS: 24,12,8,6,5,4,3,2,1.yui 3- u- 1- 12.yui3-u- 1-8.yui3-u-1-6.yui3-u-1-5.yui3-u-1-4.yui3-u-1-3.yui3-u-1-2.yui3-u-1 = Fills 100% of available width or.yui3-u Shrinks to fit unless width is applied
12
THE MARKUP First Section Second Section 1 st Half 2 nd Half
13
GRID EXAMPLES Hannon Hill page: http://www.hannonhill.com http://educ.jmu.edu/~chaoaj/csuc12/hh Jeopardy http://educ.jmu.edu/~chaoaj/csuc12/jeopardy Demo Responsive Page Grid Local file
14
## No Comment
15
Thank you – Questions? Alvin Chao E-mail: chaoaj@jmu.edu Twitter: @chaoaj Web: http://about.me/alvinchao
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.