Hi, I'm brand new to Sling and Jackrabbit. I'd like to create a node with some default content on it. Based on what I have read the way to do it is to create a new node type with the default content embedded in it. For example I'd create a node type bar that lives in the namespace foo. Then hopefully it's possible to do something like this:
curl -u admin:admin -F"sling:resourceType=foo/bar" -F"jcr:primaryType":"foo:bar" -F"title=some title" http://localhost:8080/content/mynode So now mynode would be of type foo:bar and would contain the default content in the content property that I would have specified. I could then render the content with a template like: <html> <body> <div id="content"><%= currentNode.content %></div> </body> </html> Is this possible with Sling ATM? Incidentally I'd like to have a simple way of defining new node types like foo:bar with custom content on them. If this already exists, super! If not I'd like to contribute if the community is interested. TIA, - Ole
