Commit caabaa2e authored by Canh Ngo's avatar Canh Ngo

HIPPLUG-1317 removed 'overview' and 'newsoverview' pages

These pages are no longer used in any components/sitemapitems

Removed unused OverView component
parent e44f42b6
......@@ -356,20 +356,6 @@
<sv:value>/hst:hst/hst:configurations/contentblocksdemo/hst:pages</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="contentblocksdemo-configuration-pages-newsoverview">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:initializeitem</sv:value>
</sv:property>
<sv:property sv:name="hippo:sequence" sv:type="Double">
<sv:value>30077</sv:value>
</sv:property>
<sv:property sv:name="hippo:contentresource" sv:type="String">
<sv:value>hst/configurations/contentblocksdemo/pages/newsoverview.xml</sv:value>
</sv:property>
<sv:property sv:name="hippo:contentroot" sv:type="String">
<sv:value>/hst:hst/hst:configurations/contentblocksdemo/hst:pages</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="contentblocksdemo-configuration-pages-newspage">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:initializeitem</sv:value>
......@@ -384,20 +370,6 @@
<sv:value>/hst:hst/hst:configurations/contentblocksdemo/hst:pages</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="contentblocksdemo-configuration-pages-overview">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:initializeitem</sv:value>
</sv:property>
<sv:property sv:name="hippo:sequence" sv:type="Double">
<sv:value>30079</sv:value>
</sv:property>
<sv:property sv:name="hippo:contentresource" sv:type="String">
<sv:value>hst/configurations/contentblocksdemo/pages/overview.xml</sv:value>
</sv:property>
<sv:property sv:name="hippo:contentroot" sv:type="String">
<sv:value>/hst:hst/hst:configurations/contentblocksdemo/hst:pages</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="contentblocksdemo-configuration-pages-search">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:initializeitem</sv:value>
......
<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="newsoverview">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:component</sv:value>
</sv:property>
<sv:property sv:name="hst:referencecomponent" sv:type="String">
<sv:value>hst:pages/overview</sv:value>
</sv:property>
</sv:node>
<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" sv:name="overview">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:component</sv:value>
</sv:property>
<sv:property sv:name="hst:referencecomponent" sv:type="String">
<sv:value>hst:abstractpages/base</sv:value>
</sv:property>
<sv:node sv:name="main">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:component</sv:value>
</sv:property>
<sv:node sv:name="content">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hst:component</sv:value>
</sv:property>
<sv:property sv:name="hst:referencecomponent" sv:type="String">
<sv:value>hst:components/overview</sv:value>
</sv:property>
</sv:node>
</sv:node>
</sv:node>
\ No newline at end of file
/*
* Copyright 2010-2014 Hippo B.V. (http://www.onehippo.com)
*
* Licensed 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.
*/
package org.onehippo.forge.contentblocksdemo.components;
import org.onehippo.forge.contentblocksdemo.componentsinfo.PageableListInfo;
import org.hippoecm.hst.core.parameters.ParametersInfo;
import org.hippoecm.hst.content.beans.standard.HippoBean;
import org.hippoecm.hst.core.component.HstComponentException;
import org.hippoecm.hst.core.component.HstRequest;
import org.hippoecm.hst.core.component.HstResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ParametersInfo(type = PageableListInfo.class)
public class Overview extends BaseComponent {
public static final Logger log = LoggerFactory.getLogger(Overview.class);
@Override
public void doBeforeRender(final HstRequest request, final HstResponse response) throws HstComponentException {
PageableListInfo info = getComponentParametersInfo(request);
HippoBean scope = request.getRequestContext().getContentBean();
if (scope == null) {
response.setStatus(404);
log.info("For an Overview component there must be a content bean available to search below. Cannot create an overview");
return;
}
createAndExecuteSearch(request, info, scope, null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment