Latest Posts

Archives [+]

Categories [+]

Authors [+]

Screencast Errata

Before Sling was released there was a change in the way Sling finds application files (e.g. .jst or .esp). While this made things easier it also broke the examples I presented in the screencasts here and here. So here is some update information on how to fix this:

The first screencast's code is included as an example application with CRX Quickstart. So if you just stick to the example app structure you will be fine.

For the second screencast we started out with a directory like this (leaving out the image folder):

tss
|-index.html
|-admin
  |-index.html
|-post
  |-index.html
|-thread
  |-index.html

and ended up (after the code was changed in the course of the screencast) with:

tss
|-index.jst
|-admin
  |-index.jst
|-post
  |-index.jst
|-thread
  |-index.jst

Now, in the current version the final directory structure must be:

tss
|-html.jst (this was the home page)
|-admin.jst
|-post.jst
|-thread.jst

So, for example in the first step I rename tss/admin/index.html to tss/admin/index.jst. Now, it should be renamed and moved to tss/admin.jst and so on. For clarity, I have attached the new resulting code to this post.

 
(optional)
No comments yet