Skip to content

Commit

Permalink
Made Portal Extension more self descriptive.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Nov 23, 2012
1 parent e62e68c commit 64e335a
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@
<field name="externalSettingsPath">
<string>configuration.properties</string>
</field>
<!-- All the dependencies of the portal container ordered by loading priority -->
<!--
The list of all the context names that are needed to initialize the Portal Container properly.
The order of the dependencies will define the initialization order and also the order for
loading resources. When a resource with the same path, say /dir/subdir/resource, is available
in more than one of the listed contexts, the one from the context closest to the end of this list
will be chosen. Here we want the resources available in gatein-portal-extension to win over all
other resources. Therefore we have added gatein-portal-extension as the last element of the list.
-->
<field name="dependencies">
<collection type="java.util.ArrayList">
<value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
UIHomePagePortlet.Label.Slogan=Extending a Portal Container
UIHomePagePortlet.Label.Slogan=Congratulations!
UIHomePagePortlet.Label.SubSlogan=You have just installed the GateIn Portal Extension
UIHomePagePortlet.Label.Title=Sign in as:
UIHomePagePortlet.Label.ExtendedHomePage=<b>Congratulation</b>, you just installed a new portal extension. A portal extension allows you to customize the default portal by deploying a single archive. In this example we replaced few things: <ul><li>This text</li><li>A couple of translations (The copyright below, the slogan on the image on the left side of this text))</li><li>The <a href="/portal/login">login</a> page</li><li>Additional pages (one for the site 'classic', one for the group 'users', one for the user 'root')</ul>
UIPortalToolPanel.label.companyTitleText=My awesome company
UIAwesomePortlet.Label.ThatIsWhatWeAre=That's what we are: Awesome!
UIAwesomePortlet.Label.DefinedIn=This is AwesomePortlet defined in GateIn Portal Extension.
105 changes: 48 additions & 57 deletions gatein-portal-extension/war/src/main/webapp/WEB-INF/portlet.xml
Original file line number Diff line number Diff line change
@@ -1,67 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2009 eXo Platform SAS.
This is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
JBoss, Home of Professional Open Source
Copyright 2012, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
You should have received a copy of the GNU Lesser General Public
License along with this software; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA, or see the FSF site: http://www.fsf.org.
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.
-->

-->
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="1.0">

<!--
<portlet-app version="1.0" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
-->

<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="1.0">
<portlet>
<description xml:lang="EN">Awesome Portlet</description>
<portlet-name>AwesomePortlet</portlet-name>
<display-name xml:lang="EN">Awesome Portlet</display-name>
<portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>

<portlet>
<description xml:lang="EN">Awesome Portlet</description>
<portlet-name>AwesomePortlet</portlet-name>
<display-name xml:lang="EN">Awesome Portlet</display-name>
<portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>

<init-param>
<name>webui.configuration</name>
<value>/WEB-INF/conf/portlet/web/AwesomePortlet/webui/configuration.xml</value>
</init-param>
<init-param>
<name>webui.configuration</name>
<value>/WEB-INF/conf/portlet/web/AwesomePortlet/webui/configuration.xml</value>
</init-param>

<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>help</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>locale.portal.extension</resource-bundle>

<portlet-info>
<title>Awesome Portlet</title>
<short-title>Awesome Portlet</short-title>
<keywords>System</keywords>
</portlet-info>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>help</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>locale.portal.extension</resource-bundle>

<portlet-preferences>
<preference>
<name>template</name>
<value>system:/templates/groovy/webui/component/UIAwesomePortlet.gtmpl</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>

</portlet>
<portlet-info>
<title>Awesome Portlet</title>
<short-title>Awesome Portlet</short-title>
<keywords>System</keywords>
</portlet-info>

<portlet-preferences>
<preference>
<name>template</name>
<value>system:/templates/groovy/webui/component/UIAwesomePortlet.gtmpl</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>

</portlet>

</portlet-app>
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<link rel="stylesheet" type="text/css" href="<%=contextPath%>/login/skin/Stylesheet.css" />
</head>
<body style="text-align: center; background: #b5b6b6; font-family: arial, tahoma, verdana">
<div style="color: #334AF6; font-weight: bold;">This modified login form comes from gatein-portal-extension.</div>
<div style="color: #334AF6; font-weight: bold;">This modified login form comes from GateIn Portal Extension.</div>
<div class="UILogin">
<div class="LoginHeader"></div>
<div class="LoginContent">
Expand Down

0 comments on commit 64e335a

Please sign in to comment.