- <!--
- The JCR repository - written in XML for easy reading. actual dumps will look more like this
- http://willcode4beer.com/design.jsp?set=gettingStartedWithJCR&pageNum=4
- -->
- <root>
- <!--
- these pages are assigned layout and the hierarchy could represent the url structure
- instead of the controller attribute, we might want to use custom nt:nodeType and map node types to controllers...
- -->
- <pages>
- <Home_Page controller="Application:MyBlog:home" page_title="Welcome" body="Hello world">
- <my_blog controller="Application:MyBlog:list" page_title="My Blog" intro="Welcome to my Blog" orderable_child_nodes="true">
- <Other_Entry_2010-09-24 controller="Application:MyBlog:blog" date="2010-09-24T13:01:04.758+02:00">
- <sv:property sv:name="blog_image" jcr:nodeType="nt:weak-reference"><sv:value>842e61c0-09ab-42a9-87c0-308ccc90e6f3</sv:value></sv:property>
- </Other_Entry_2010-09-24>
- <!--
- uri for this page is /my_blog/Other_Entry_2010-09-24.html
- uri for the image is probably resolved in output and /assets/blog_images/other.jpg
- -->
- <An_Entry_2010-09-23 controller="Application:MyBlog:blog" date="2010-09-23T13:01:04.758+02:00">
- <illustration.png jcr:primaryType="nt:file" alt="Hello World!" jcr:created="2010-09-27T13:01:04.758+02:00">
- <jcr:content jcr:primaryType="nt:unstructured" jcr:data="aDEuIENoYXB0ZXIgMSBUaXRsZQoKCiog..." jcr:lastModified="2009-04-27T13:01:07.472+02:00" jcr:mimeType="image/png"/>
- </illustration.png>
- <!--
- user uploaded an image with this post that does not go into repository (well, this is a philosophical question independent of jcr or not)
- uri would be /my_blog/An_Entry_2010-09-23/illustration.png
- -->
- </An_Entry_2010-09-23>
- </my_blog>
- <about controller="Application:Standardpage" page_title="About us" body="..." />
- </Home_Page>
- </pages>
- <!--
- this would be the place to store objects which don't have a specific page, but can appear on many pages eg. internal ads, quick links
- we might want to put blog items here if they are aggregated dynamically in several places.
- but even then, maybe there is a primary place for the blog and other things like "recent posts" can fetch info from there.
- -->
- <objects>
- <blogs type="folder" name="Blog Entries">
- <Blog-Entry-1 body="Hello World!" />
- </blogs>
- </objects>
- <!--
- these assets are represented in a folder structure in the cms
- this is to create some basic images used everywhere
- -->
- <assets>
- <blog_images jcr:primaryType="nt:folder" name="Blog Images">
- <hello.png jcr:uuid="842e61c0-09ab-42a9-87c0-308ccc90e6f4" jcr:primaryType="nt:file" jcr:mixinTypes="mix:referenceable"
- alt="Hello World!" jcr:created="2009-04-27T13:01:04.758+02:00">
- <jcr:content jcr:primaryType="nt:unstructured" jcr:data="aDEuIENoYXB0ZXIgMSBUaXRsZQoKCiog..."
- jcr:lastModified="2009-04-27T13:01:07.472+02:00" jcr:mimeType="image/png"/>
- </hello.png>
- <other.jpg jcr:uuid="842e61c0-09ab-42a9-87c0-308ccc90e6f3" jcr:primaryType="nt:file" jcr:mixinTypes="mix:referenceable"
- alt="Hello World!" jcr:created="2009-04-27T13:01:04.758+02:00">
- <jcr:content jcr:primaryType="nt:unstructured" jcr:data="aDEuIENoYXB0ZXIgMSBUaXRsZQoKCiog..."
- jcr:lastModified="2009-04-27T13:01:07.472+02:00" jcr:mimeType="image/jpeg"/>
- </other.jpg>
- </blog_images>
- <standard_company:logos jcr:primaryType="nt:folder" name="Standard Company Logos">
- </standard_company_logos>
- </assets>
- </root>