On Thu, Oct 29, 2009 at 3:16 AM, J Aaron Farr <[email protected]> wrote: > > I'm trying to figure out loading initial-content from a bundle, but I'm > having a bit of trouble. > > First, if I understand correctly, if I change files under my > initial-content directory and then reinstall the bundle, they *don't* > change in the repository, right? > > Second, I was playing around with the espblog sample, to see if I > understand things correctly. I added the following file: > > > espblog/src/main/resources/initial-content/content/espblog/posts/first_post.json > > that looks like this: > > { > "jcr:primaryType":"nt:unstructured", > "posttext":"I'd like this post to be initial content.", > "title":"First post" > } > > And when I deploy this bundle, the post is loaded where I expect: > > http://localhost:8080/content/espblog/posts/first_post.html > > But, this URL no longer works: > > http://gandalf.local:8080/content/espblog/posts.list.html
Just in case: The server in your first url is localhost:8080, the second is gandalf.local:8080 ... > and I believe that's because 'posts' is not a sling:Folder: That shouldn't be relevant, as long as you did install the Path based RTP bundle, which uses elements of the path (not the nt:primaryType or sling:resourceType) to provide a resource type. Check your web console (http://localhost:8080/system/console) for "Apache Sling Sample Path Based Resource Type Provider". Is it there? -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Sommerrogata 13-15, N-0255 Oslo, Norway + 47 22 00 84 00 / +47 21 531941, ext 2070
