Hmm. The easiest way would of course be to send the content as jcr:data. How far away is the implementation of this, do you think?
Also, if not, how do I simulate multipart posting from Dojo? Hmm. I'll go down in the dark documentation cellars.. Cheers, PS On Feb 11, 2008 10:44 PM, Peter Svensson <[EMAIL PROTECTED]> wrote: > Thanks Tobias! Actually, I already rely on one script to get the Sling > resource hierarchy out in the way I like :) > But since I think Bunkai (the editor and hopefully Sling browser) will be > egared at editing web content in Sling nodes, the basic file thin is > probably the way to go. > Great. I'll have to go sleep now, but I'll do it tomorrow. > > Cheers, > PS > > > On Feb 11, 2008 10:38 PM, Tobias Bocanegra <[EMAIL PROTECTED]> > wrote: > > > ok, there are several posibilities: > > 1) you create a node with some property, eg: 'content'. but then you > > need a html.esp script to dump the 'content' out again. > > 2) you create a 'nt:file' node and store the content in the jcr:data > > property. but this is not possible currently, since you can't define > > the nodetype, yet). > > 3) you upload a file in a multipart post. the post servlet will > > automatically create a nt:file or nt:resource node and store the > > content in the jcr:data property. after that you should be able to > > address the content directly. > > > > hope this helps, > > regards, toby > > > > > > On 2/11/08, Peter Svensson <[EMAIL PROTECTED]> wrote: > > > Hmm. OK. That makes sense. but at the moment I'm trying to use the > > nodes as > > > if they were files. Is there a magic property for 'content'? > > > Or, wait, maybe I can use any property name at all, as long as I use > > the > > > same all the time? > > > > > > But if I try to save contents of files (html files) using a property > > > 'content'. How will they look when accessed as .html? I really don't > > think > > > I've understood things :| :) > > > > > > Cheers, > > > PS > > > > > > On Feb 11, 2008 10:04 PM, Tobias Bocanegra <[EMAIL PROTECTED]> > > wrote: > > > > > > > hi, > > > > you just give the input field of the form the same name as the > > > > property you want to save. > > > > regards, toby > > > > > > > > On 2/11/08, Peter Svensson <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > > > > > I'm now able to create new nodes and subnodes in the Sling > > hierarchy > > > > with > > > > > bunkai. I'm now trying to load and save the 'contents' of each > > node, but > > > > I > > > > > can't seem to figure out what to call the form property. > > > > > Could someone help me out on this? I've tried to read Bertrands 15 > > > > minute > > > > > intro, but I'm not sure what the content property for a form could > > be. > > > > > > > > > > Thanks for any help > > > > > > > > > > Cheers, > > > > > PS > > > > > > > > > > > > > > > > > -- > > > > -----------------------------------------< [EMAIL PROTECTED]>--- > > > > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 > > Basel > > > > T +41 61 226 98 98, F +41 61 226 98 97 > > > > -----------------------------------------------< http://www.day.com>--- > > > > > > > > > > > > > -- > > -----------------------------------------< [EMAIL PROTECTED] >--- > > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel > > T +41 61 226 98 98, F +41 61 226 98 97 > > -----------------------------------------------< http://www.day.com >--- > > > >