viewproperties.jsp 1.38 KB
<%--
  ADOBE CONFIDENTIAL

  Copyright 2015 Adobe Systems Incorporated
  All Rights Reserved.

  NOTICE:  All information contained herein is, and remains
  the property of Adobe Systems Incorporated and its suppliers,
  if any.  The intellectual and technical concepts contained
  herein are proprietary to Adobe Systems Incorporated and its
  suppliers and may be covered by U.S. and Foreign Patents,
  patents in process, and are protected by trade secret or copyright law.
  Dissemination of this information or reproduction of this material
  is strictly forbidden unless prior written permission is obtained
  from Adobe Systems Incorporated.
--%><%
%><%@include file="/libs/granite/ui/global.jsp"%><%
%><%@page session="false"%><%

    String[] paths = request.getParameterValues("item");
    boolean isBulkEditing = (paths != null && paths.length > 1);
    String propertiesContent;

    if (isBulkEditing) {
        // TBD
        propertiesContent = "bulk/content";
    } else {
        propertiesContent = "single/content";
    }

    Resource content = resource.getChild(propertiesContent);

    if (content != null) {
        ValueMap contentVm = content.getValueMap();
        String contentResourceType = contentVm.get("sling:resourceType", "granite/ui/components/coral/foundation/container");

%><sling:include resource="<%= content %>" resourceType="<%= contentResourceType %>" /><%
    }
%>