On 1/21/11 11:06 AM, Markus Joschko wrote:
>> You could create the folder node inside your NodeNameGenerator. This is
>> a bit more code, but would allow you full control over how the folder is
>> created (which it sounds like what you want).
> 
> Ok, this is perfect then. Maybe I am a bit pedantic but is
> NodeNameGenerator the right place to do such stuff?
> It sounds like it is not meant to be used in that way.

I agree that this wasn't the intent. But the post servlet does not have
a mechanism to specify node types for intermediate nodes which are
automatically created.

Alternatively, you could write a PostProcessor which uses setPrimaryType
to change the primary type from sling:Folder to whatever your custom
folder type is, but this seems wrong too for some reason.

Justin

Reply via email to