You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/05/26 18:42:10 UTC

[sling-whiteboard] 02/03: Removing the listitemoptions which was only used by childlist

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

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git

commit d47c7faf719f3c48cce8297e8ba8b684e7226ce0
Author: Dan Klco <dk...@apache.org>
AuthorDate: Sat May 26 14:41:50 2018 -0400

    Removing the listitemoptions which was only used by childlist
---
 .../components/general/list/listItemOptions.jsp    | 32 ----------------------
 1 file changed, 32 deletions(-)

diff --git a/cms/reference/src/main/resources/jcr_root/apps/reference/components/general/list/listItemOptions.jsp b/cms/reference/src/main/resources/jcr_root/apps/reference/components/general/list/listItemOptions.jsp
deleted file mode 100644
index 2f2d4db..0000000
--- a/cms/reference/src/main/resources/jcr_root/apps/reference/components/general/list/listItemOptions.jsp
+++ /dev/null
@@ -1,32 +0,0 @@
-<%-- /*
- * 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.
- */ --%>
- <%@include file="/libs/sling-cms/global.jsp"%>
-<option value="">Select Component</option>
-<c:set var="query" value="SELECT * FROM [sling:Component] WHERE [componentType]='ListItems'" />
-<c:forEach var="component" items="${sling:findResources(resourceResolver,query,'JCR-SQL2')}">
-	<c:choose>
-		<c:when test="${fn:startsWith(component.path,'/apps/')}">
-			<c:set var="rt" value="${fn:substringAfter(component.path,'/apps/')}" />
-		</c:when>
-		<c:otherwise>
-			<c:set var="rt" value="${fn:substringAfter(component.path,'/libs/')}" />
-		</c:otherwise>
-	</c:choose>
-	<option value="${rt}" ${rt == editProperties.itemType ? 'selected' : ''}><sling:encode value="${component.valueMap['jcr:title']}" mode="HTML" /></option>
-</c:forEach>
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
dklco@apache.org.