This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch feature/add-mixin
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourcemerger.git

commit 834852d7a68f863c68ffbdc9bfc42747c607f325
Author: Konrad Windszus <[email protected]>
AuthorDate: Thu Feb 25 20:30:15 2021 +0100

    SLING-5469 add mixin for resource merger properties
---
 pom.xml                                            |  5 ++++
 .../SLING-INF/nodetypes/resourcemerger.cnd         | 29 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/pom.xml b/pom.xml
index c215cce..0ed6965 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,6 +57,11 @@
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
                 <extensions>true</extensions>
+                <configuration>
+                    <instructions>
+                        
<Sling-Nodetypes>SLING-INF/nodetypes/resourcemerger.cnd</Sling-Nodetypes>
+                    </instructions>
+                </configuration>
             </plugin>
         </plugins>
     </build>
diff --git a/src/main/resources/SLING-INF/nodetypes/resourcemerger.cnd 
b/src/main/resources/SLING-INF/nodetypes/resourcemerger.cnd
new file mode 100644
index 0000000..9c37fcc
--- /dev/null
+++ b/src/main/resources/SLING-INF/nodetypes/resourcemerger.cnd
@@ -0,0 +1,29 @@
+//
+//  Licensed to the Apache Software Foundation (ASF) under one
+//  or more contributor license agreements.  See the NOTICE file
+//  distributed with this work for additional information
+//  regarding copyright ownership.  The ASF licenses this file
+//  to you under the Apache License, Version 2.0 (the
+//  "License"); you may not use this file except in compliance
+//  with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing,
+//  software distributed under the License is distributed on an
+//  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//  KIND, either express or implied.  See the License for the
+//  specific language governing permissions and limitations
+//  under the License.
+//
+
+<sling = 'http://sling.apache.org/jcr/sling/1.0'>
+
+//-----------------------------------------------------------------------------
+// Mixin node type for Sling Resource Merger
+[sling:ResourceMerger]
+    mixin
+  - sling:hideProperties (string) multiple
+  - sling:hideChildren (string) multiple
+  - sling:hideResource (boolean)
+  - sling:orderBefore (string)

Reply via email to