You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by paksegu <pa...@yahoo.com> on 2008/06/03 18:24:49 UTC
sling:resourceType
I was reading this blog and as an excerpt below, I would like to know the reason for the
"sling:resourceType[string]" used here and or what purpose that is serve? do I have to include that with all sling-apps nodes?
blog [nt:unstructured]
| +sling:resourceType[string]
|--post [nt:unstructured]
| +title[string]
| +body[string]
| +sling:resourceType[string]
|----comment [nt:unstructured]
| +body[string]
| +sling:resourceType[string]
|----attachment [nt:file]
Re: sling:resourceType
Posted by paksegu <pa...@yahoo.com>.
Thanks
Ransford Segu-Baffoe
paksegu@yahoo.com
https://serenade.dev.java.net/
http://www.noqturnalmediasystems.com/
--- On Tue, 6/3/08, Alexander Klimetschek <aklimets@day.com> wrote:
From: Alexander Klimetschek <aklimets@day.com>
Subject: Re: sling:resourceType
To: sling-dev@incubator.apache.org, paksegu@yahoo.com
Date: Tuesday, June 3, 2008, 12:36 PM
On Tue, Jun 3, 2008 at 6:24 PM, paksegu <paksegu@yahoo.com> wrote:
> I was reading this blog and as an excerpt below, I would like to know the
reason for the
> "sling:resourceType[string]" used here and or what purpose that
is serve? do I have to include that with all sling-apps nodes?
No, since the parent nodes are always nt:unstructured in this case.
Sling does not require this property to be defined by a node type or
mixin.
The listing below is a dump of an actual content structure, not of the
node types.
> blog [nt:unstructured]
> | +sling:resourceType[string]
> |--post [nt:unstructured]
> | +title[string]
> | +body[string]
> | +sling:resourceType[string]
> |----comment [nt:unstructured]
> | +body[string]
> | +sling:resourceType[string]
> |----attachment [nt:file]
>
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com
Re: sling:resourceType
Posted by Alexander Klimetschek <ak...@day.com>.
On Tue, Jun 3, 2008 at 6:24 PM, paksegu <pa...@yahoo.com> wrote:
> I was reading this blog and as an excerpt below, I would like to know the reason for the
> "sling:resourceType[string]" used here and or what purpose that is serve? do I have to include that with all sling-apps nodes?
No, since the parent nodes are always nt:unstructured in this case.
Sling does not require this property to be defined by a node type or
mixin.
The listing below is a dump of an actual content structure, not of the
node types.
> blog [nt:unstructured]
> | +sling:resourceType[string]
> |--post [nt:unstructured]
> | +title[string]
> | +body[string]
> | +sling:resourceType[string]
> |----comment [nt:unstructured]
> | +body[string]
> | +sling:resourceType[string]
> |----attachment [nt:file]
>
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com