Commit 646e004b authored by Ate Douma's avatar Ate Douma

TRIVIAL cleanup master

parent be1badb5
*.iml
/.idea/
.project/
.settings
target/
This diff is collapsed.
Hippo Plugin SEO Support
Copyright 2011-2018 Hippo B.V. (http://www.onehippo.com)
This product includes software developed by:
Hippo B.V., Amsterdam, The Netherlands (http://www.onehippo.com/);
The Apache Software Foundation (http://www.apache.org/).
NOTICE: Only our own original work is licensed under the terms of the
Apache License Version 2.0. The licenses of some libraries might impose
different redistribution or general licensing terms than those stated in the
Apache License. Users and redistributors are hereby requested to verify these
conditions and agree upon them.
# This is not the branch you're looking for...
BloomReach only provides the git trees for the release tags of Hippo CMS, as explained on https://www.onehippo.org/about/open-source-release-policy.html
To checkout the code for a specific release tag, after cloning this repository, use the following:
## to show the available tags
git tag
## to checkout a specific tag
git checkout <tag name>
## to modify a project
If you want to make modifications to a project, for example to create a patch, create a new fork branch from the specific tag like this:
git checkout -b forked-<tag name> <tag name>
For the latter, also see the **Build from Source** documentation at https://www.onehippo.org/library/development/build-hippo-cms-from-scratch.html
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2011-2018 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-cms7-project</artifactId>
<version>29.4-SNAPSHOT</version>
</parent>
<name>Hippo Plugin SEO Support</name>
<description>Hippo Plugin SEO Support</description>
<artifactId>hippo-plugin-seo-support-root</artifactId>
<version>4.3.0-SNAPSHOT</version>
<packaging>pom</packaging>
<inceptionYear>2011</inceptionYear>
<scm>
<connection>scm:git:https://code.onehippo.org/cms-community/hippo-plugin-seo-support.git</connection>
<developerConnection>scm:git:git@code.onehippo.org:cms-community/hippo-plugin-seo-support.git</developerConnection>
<url>https://code.onehippo.org/cms-community/hippo-plugin-seo-support</url>
</scm>
<properties>
<hippo.hst.version>5.3.0-SNAPSHOT</hippo.hst.version>
<hippo.commons.version>4.3.0-SNAPSHOT</hippo.commons.version>
<hippo.repository.version>5.3.0-SNAPSHOT</hippo.repository.version>
<junit.version>4.12</junit.version>
<easymock.version>3.4</easymock.version>
</properties>
<repositories>
<repository>
<id>hippo</id>
<name>Hippo Maven 2</name>
<url>https://maven.onehippo.com/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</repository>
</repositories>
<issueManagement>
<system>Jira Hippo Plugins</system>
<url>https://issues.onehippo.com/browse/HIPPLUG/component/13047</url>
</issueManagement>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>jrebel</name>
</property>
</activation>
</profile>
<profile>
<id>pedantic</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<excludes combine.children="append">
<!-- repository content XML -->
<exclude>repository/src/main/resources/**/*.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<modules>
<module>site</module>
<module>repository</module>
</modules>
</project>
<?xml version="1.0"?>
<!--
Copyright 2015 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>hippo-plugin-seo-support-root</artifactId>
<groupId>org.onehippo.cms7</groupId>
<version>4.3.0-SNAPSHOT</version>
</parent>
<artifactId>hippo-plugin-seo-support-repository</artifactId>
<name>Hippo Plugin SEO Support Repository</name>
</project>
definitions:
config:
/hippo:configuration/hippo:translations/hippo:hst/componentparameters/org/onehippo/forge:
jcr:primaryType: hipposys:resourcebundles
/seo:
jcr:primaryType: hipposys:resourcebundles
/support:
jcr:primaryType: hipposys:resourcebundles
/SEOHelperComponentParamsInfo:
jcr:primaryType: hipposys:resourcebundles
/en:
jcr:primaryType: hipposys:resourcebundle
dc-language: DC-language
dc-schema-link: DC Schema Link
dc-terms-link: DC Terms Link
default-meta-description: Default Meta Description
document-description-bean-props: Description Field(s) in the documents
document-title-bean-props: Title field(s) in the documents
enable-dc-language: Enable DC Language
group.dcsettings: Dublin Core settings
group.descriptionsettings: Description settings for the meta-description tag
group.titlesettings: Title settings for the title-tag
menu-item-allow-expanded: Use Expanded Menu Item
menu-name: Menu Name
site-dc-copyright-link: Site DC Copyright Link
site-title: Site Title
site-title-in-template: Use title-tag provided by page templates
template-page-title: Template Page Title
definitions:
config:
/hippo:configuration/hippo:frontend/cms/cms-tree-views/configuration/configurationBrowser/filters:
/hideSEOSupportNamespace:
.meta:order-before: showOtherNamespaces
jcr:primaryType: frontend:pluginconfig
display: false
path: /hippo:namespaces/seosupport
definitions:
namespace:
seosupport:
uri: http://forge.onehippo.org/seosupport/nt/1.0
cnd: seosupport.cnd
definitions:
config:
/hippo:namespaces/seosupport:
jcr:primaryType: hipposysedit:namespace
jcr:mixinTypes: ['mix:referenceable']
/seo:
jcr:primaryType: hipposysedit:templatetype
jcr:mixinTypes: ['mix:referenceable', 'editor:editable']
/hipposysedit:nodetype:
jcr:primaryType: hippo:handle
jcr:mixinTypes: ['mix:referenceable']
/hipposysedit:nodetype:
jcr:primaryType: hipposysedit:nodetype
jcr:mixinTypes: ['hipposysedit:remodel', 'mix:referenceable']
hipposysedit:node: true
hipposysedit:supertype: ['hippo:compound', 'hippostd:relaxed']
hipposysedit:uri: http://forge.onehippo.org/seosupport/nt/1.0
/seotitle:
jcr:primaryType: hipposysedit:field
hipposysedit:mandatory: false
hipposysedit:multiple: false
hipposysedit:ordered: false
hipposysedit:path: seosupport:seotitle
hipposysedit:primary: false
hipposysedit:type: String
/seodescription:
jcr:primaryType: hipposysedit:field
hipposysedit:mandatory: false
hipposysedit:multiple: false
hipposysedit:ordered: false
hipposysedit:path: seosupport:seodescription
hipposysedit:primary: false
hipposysedit:type: String
/hipposysedit:prototypes:
jcr:primaryType: hipposysedit:prototypeset
/hipposysedit:prototype:
jcr:primaryType: seosupport:seo
seosupport:seodescription: ''
seosupport:seotitle: ''
/editor:templates:
jcr:primaryType: editor:templateset
/_default_:
jcr:primaryType: frontend:plugincluster
frontend:properties: [mode]
frontend:references: [wicket.model, model.compareTo, engine]
frontend:services: [wicket.id]
/root:
jcr:primaryType: frontend:plugin
item: ${cluster.id}.field
plugin.class: org.hippoecm.frontend.service.render.ListViewPlugin
/seotitle:
jcr:primaryType: frontend:plugin
caption: SEO Title
field: seotitle
plugin.class: org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin
wicket.id: ${cluster.id}.field
/cluster.options:
jcr:primaryType: frontend:pluginconfig
/seodescription:
jcr:primaryType: frontend:plugin
caption: SEO Description
field: seodescription
plugin.class: org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin
wicket.id: ${cluster.id}.field
/cluster.options:
jcr:primaryType: frontend:pluginconfig
/**
* Copyright (C) 2015 Hippo B.V.
*
* 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.
*/
<'hippo'='http://www.onehippo.org/jcr/hippo/nt/2.0.4'>
<'hippostd'='http://www.onehippo.org/jcr/hippostd/nt/2.0'>
<'seosupport'='http://forge.onehippo.org/seosupport/nt/1.0'>
[seosupport:seo] > hippo:compound, hippostd:relaxed
orderable
[seosupport:seosupport] > hippo:compound, hippostd:relaxed
orderable
definitions:
config:
/hippo:configuration/hippo:translations/hippo:types/seosupport:seo:
jcr:primaryType: hipposys:resourcebundles
/en:
jcr:primaryType: hipposys:resourcebundle
jcr:name: SEO
seosupport:seodescription: SEO Description
seosupport:seodescription#hint: Text to be used in the meta description tag
seosupport:seotitle: SEO Title
seosupport:seotitle#hint: Text to be used in the title tag
group: hippo-cms
project:
name: hippo-plugin-seo-support
after: [hippo-cms, hippo-site-toolkit]
module: hippo-plugin-seo-support-repository
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2011-2015 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>hippo-plugin-seo-support-root</artifactId>
<groupId>org.onehippo.cms7</groupId>
<version>4.3.0-SNAPSHOT</version>
</parent>
<name>Hippo Plugin SEO Support Site</name>
<artifactId>hippo-plugin-seo-support</artifactId>
<packaging>jar</packaging>
<repositories>
<repository>
<id>hippo</id>
<name>Hippo Maven 2</name>
<url>https://maven.onehippo.com/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</repository>
</repositories>
<issueManagement>
<system>Jira Hippo Plugins</system>
<url>https://issues.onehippo.com/browse/HIPPLUG/component/13047</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.onehippo.cms7.hst</groupId>
<artifactId>hst-api</artifactId>
<version>${hippo.hst.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.onehippo.cms7.hst</groupId>
<artifactId>hst-client</artifactId>
<version>${hippo.hst.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-cms7-commons</artifactId>
<version>${hippo.commons.version}</version>
<scope>provided</scope>
</dependency>
<!-- TEST DEPENDENCIES -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>${easymock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.onehippo.cms7.hst</groupId>
<artifactId>hst-mock</artifactId>
<version>${hippo.hst.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-repository-testutils</artifactId>
<version>${hippo.repository.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
/*
* Copyright 2011-2016 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.seo.support;
import org.hippoecm.hst.core.parameters.FieldGroup;
import org.hippoecm.hst.core.parameters.FieldGroupList;
import org.hippoecm.hst.core.parameters.Parameter;
@FieldGroupList({
@FieldGroup(
titleKey = "group.titlesettings",
value = {
"site-title-in-template",
"site-title",
"document-title-bean-props",
"menu-name",
"menu-item-allow-expanded",
"template-page-title"
}
),
@FieldGroup(
titleKey = "group.descriptionsettings",
value = {
"document-description-bean-props",
"default-meta-description"
}
),
@FieldGroup(
titleKey = "group.dcsettings",
value = {
"site-dc-copyright-link",
"dc-schema-link",
"dc-terms-link",
"enable-dc-language",
"dc-language"
}
),
@FieldGroup(
// These attributes are still supported for backwards compatibility,
// but no longer exposed through the component parameters dialog.
titleKey = "group.remove",
value = {
"document-attribute", // controlling the name of the attribute is confusing to the user,
"menu-attribute", // the template should use the attributes as named by the component.
"params-info-attribute",
"document-keywords-bean-props", // keywords are no longer used by the relevant search engines
"keywords-in-document-title",
"default-meta-keywords",
"headers-in-template"
}
)
})
public interface SEOHelperComponentParamsInfo {
@Parameter(name="document-attribute", defaultValue="document", hideInChannelManager = true)
String getDocumentAttribute();
@Parameter(name="menu-name", defaultValue="main")
String getMenuName();
@Parameter(name="menu-attribute", defaultValue="menu", hideInChannelManager = true)
String getMenuAttribute();
@Parameter(name="menu-item-allow-expanded", defaultValue = "false")
boolean isMenuItemAllowExpanded();
@Parameter(name="params-info-attribute", defaultValue="paramsInfo", hideInChannelManager = true)
String getParamsInfoAttribute();
@Parameter(name="document-title-bean-props", defaultValue="title")
String getDocumentTitleBeanProperties();
@Parameter(name="document-keywords-bean-props", defaultValue="keywords", hideInChannelManager = true)
String getDocumentKeywordsBeanProperties();
@Parameter(name="document-description-bean-props", defaultValue="description")
String getDocumentDescriptionBeanProperties();
@Parameter(name="site-title")
String getSiteTitle();
@Parameter(name="dc-schema-link", defaultValue="http://purl.org/dc/elements/1.1/")
String getDublinCoreSchemaLink();
@Parameter(name="dc-terms-link", defaultValue="http://purl.org/dc/terms/")
String getDublinCoreTermsLink();
@Parameter(name="dc-language")
String getDublinCoreLanguage();
@Parameter(name="enable-dc-language")
String getEnableDublinCoreLanguage();
@Parameter(name="site-dc-copyright-link")
String getSiteDublinCoreCopyrightLink();
@Parameter(name="headers-in-template", defaultValue="false", hideInChannelManager = true)
boolean isHeadersInTemplate();
@Parameter(name="keywords-in-document-title", defaultValue="true", hideInChannelManager = true)
boolean isKeywordsInDocumentTitle();
@Parameter(name="default-meta-keywords", defaultValue="", hideInChannelManager = true)
String getDefaultMetaKeywords();
@Parameter(name="default-meta-description", defaultValue="")
String getDefaultMetaDescription();
@Parameter(name="site-title-in-template", defaultValue="false")
boolean isSiteTitleInTemplate();
@Parameter(name="template-page-title", defaultValue="%(siteTitle) - %(menuItem) - %(pageTitle) : %(keywords)")
String getTemplatePageTitle();
}
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2011-2017 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.
-->
<Configuration>
<Appenders>
<!-- console -->
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{dd.MM.yyyy HH:mm:ss} %-5p [%C.%M():%L] %m%n"/>
</Console>
</Appenders>
<Loggers>
<Logger name="org.onehippo.forge.seo.support" level="debug"/>
<Root level="info">
<AppenderRef ref="console"/>
</Root>
</Loggers>
</Configuration>
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