【发布时间】:2014-01-02 15:02:59
【问题描述】:
为了获得对 Apache Sling 的基本了解,我正在尝试 使用它构建一个简单的博客应用程序。 我定义了一个自己的节点类型 blog:post 用于单个帖子。
这是目前内容存储库的结构:
/
|
|-content
| |
| |-blog
| |
| |-some-blogpost (jcr:primaryType=blog:post)
| |-another-blogpost (jcr:primaryType=blog:post)
|-apps
|
|-blog (jcr:primaryType=sling:Folder)
|
|-post
|
|-html.jsp
我可以通过打开http://example.com/blog/some-blogpost.html来参考特定的博客文章 现在假设我想大致了解http://example.com/blog 上的最新帖子。
我如何命名必要的脚本,我必须把它放在哪里?
亲切的问候,
马库斯
【问题讨论】: