Hi John,

On Fri, Dec 15, 2017 at 1:44 AM, John Logan <[email protected]> wrote:
>... I'm creating a node at repository initialization time using a "create 
>path" statement in my repoinit
> block, and wondering what the best practice would be for also setting the 
> sling:resourceType on
> that node....

You're right that this is not supported by the repoinit language so far.

As a workaround you might register a SlingRepositoryInitializer [1]
that does what you need.

But I agree that it would make sense to support this in repoint. As
resource types are in the same "family" than node types I think best
is to expand the bracketed node type statements to something like

  (nt:unstructured mixin nt:versionable resourceType foo/bar)

WDYT?

I won't have time to do this myself in the next few days, though, but
we might at least create a ticket as I think it makes sense. Feel free
to that if you want.

-Bertrand

[1] 
https://sling.apache.org/documentation/bundles/repository-initialization.html

Reply via email to