Hi,

I have an existing content model and want to build a sling app on top. The
model is Jukka Zitting's mail model he coded for James (see [1]). One mail
is stored as:

nt:file
|-jcr:content (unstructured)
  |- from (string)
  |- to (string)
  |- jcr:data (binary)
...

In order to display a mail via Sling I added a property sling:resourceType
to the jcr:content sub node (because I could not add it to nt:file). My URL
now looks something like:

http://localhost:8888/content/.../emailtitle/jcr:content
or
http://localhost:8888/content/.../emailtitle

but in both cases the binary jcr:data is returned directly.

Do I have to change my content model or do you guys see a way that I can
access my mail resources and have a script being executed?

Thanks for hints
Cheers
Michael


[1] http://dev.day.com/microsling/content/blogs/main/jcrmail.html

-- 
Michael Marth, http://dev.day.com

Reply via email to