in order to gain a basic understanding of Apache Sling I'm trying to build a simple blogging application using it. I defined an own node type blog:post that is used for single posts.
This is the structure of the content repository so far:
/
|
|-content
| |
| |-blog
| |
| |-some-blogpost (jcr:primaryType=blog:post)
| |-another-blogpost (jcr:primaryType=blog:post)
|-apps
|
|-blog (jcr:primaryType=sling:Folder)
|
|-post
|
|-html.jsp
I can refer to a specific blog post by opening http://example.com/blog/some-blogpost.html Now suppose I wanted to have an overview of the most recent posts available at http://example.com/blog.
How do I have to name the necessary script and where do I have to put it?
Kind regards,
Markus