Path Based Resource Type Provider only works for nt:unstructured nodes
----------------------------------------------------------------------

                 Key: SLING-1347
                 URL: https://issues.apache.org/jira/browse/SLING-1347
             Project: Sling
          Issue Type: Improvement
          Components: Samples
            Reporter: Bertrand Delacretaz
            Assignee: Bertrand Delacretaz
            Priority: Minor


The samples/path-based-rtp module only handles nt:unstructured nodes, it would 
be useful to optionally support other node types.

This can be done by extending the configuration strings as follows:

/content:2 
applies to nt:unstructured nodes under /content, and uses the second path 
element as the resource type

/content:3:nt:file 
applies to nt:file nodes under /content, and uses the third path element as the 
resource type

/content:2:(nt:*) 
applies to node that match the supplied regular expression (in parentheses) and 
uses the second path element as the resource type



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to