Last active
August 29, 2015 14:05
-
-
Save vstorm83/a1de6cf0b27b3307a024 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sampleAddon-extension-config/src/main/resources/conf/configuration.xml b/sampleAddon-extension-config/src/main/resources/conf/configuration.xml | |
index 6c3e4ed..cff1a74 100644 | |
--- a/sampleAddon-extension-config/src/main/resources/conf/configuration.xml | |
+++ b/sampleAddon-extension-config/src/main/resources/conf/configuration.xml | |
@@ -12,37 +12,37 @@ | |
http://www.fsf.org. --> | |
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
- xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd http://www.exoplaform.org/xml/ns/kernel_1_2.xsd" | |
- xmlns="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"> | |
+ xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd" | |
+ xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"> | |
<external-component-plugins> | |
<!-- The full qualified name of the PortalContainerConfig --> | |
- <target-component>org.exoplatform.container.definition.PortalContainerConfig</target-component> | |
+ <target-component>org.exoplatform.container.definition.PortalContainerConfig</target-component> | |
<component-plugin> | |
- <!-- The name of the plugin --> | |
- <name>Add PortalContainer Definitions</name> | |
- <!-- The name of the method to call on the PortalContainerConfig in order to register the PortalContainerDefinitions --> | |
- <set-method>registerPlugin</set-method> | |
- <!-- The full qualified name of the PortalContainerDefinitionPlugin --> | |
- <type>org.exoplatform.container.definition.PortalContainerDefinitionPlugin</type> | |
- <init-params> | |
- <object-param> | |
- <name>portal</name> | |
- <object type="org.exoplatform.container.definition.PortalContainerDefinition"> | |
- <!-- All the dependencies of the portal container ordered by loading priority --> | |
- <field name="dependencies"> | |
- <collection type="java.util.ArrayList"> | |
- <value> | |
- <string>SampleAddOn</string> | |
- </value> | |
- </collection> | |
- </field> | |
- <!-- The name of the target dependency --> | |
- <!--<field name="target">--> | |
- <!--<string>welcome-screens</string>--> | |
- <!--</field>--> | |
- </object> | |
- </object-param> | |
- </init-params> | |
- </component-plugin> | |
+ <!-- The name of the plugin --> | |
+ <name>Change PortalContainer Definitions</name> | |
+ <!-- The name of the method to call on the PortalContainerConfig in order to register the changes on the PortalContainerDefinitions --> | |
+ <set-method>registerChangePlugin</set-method> | |
+ <!-- The full qualified name of the PortalContainerDefinitionChangePlugin --> | |
+ <type>org.exoplatform.container.definition.PortalContainerDefinitionChangePlugin</type> | |
+ <init-params> | |
+ <values-param> | |
+ <name>apply.specific</name> | |
+ <value>portal</value> | |
+ </values-param> | |
+ <object-param> | |
+ <name>change</name> | |
+ <object type="org.exoplatform.container.definition.PortalContainerDefinitionChange$AddDependencies"> | |
+ <!-- The list of name of the dependencies to add --> | |
+ <field name="dependencies"> | |
+ <collection type="java.util.ArrayList"> | |
+ <value> | |
+ <string>sampleAddOn</string> | |
+ </value> | |
+ </collection> | |
+ </field> | |
+ </object> | |
+ </object-param> | |
+ </init-params> | |
+ </component-plugin> | |
</external-component-plugins> | |
-</configuration> | |
+</configuration> | |
\ No newline at end of file | |
diff --git a/sampleAddon-extension-webapp/pom.xml b/sampleAddon-extension-webapp/pom.xml | |
index 1666b36..a87bc90 100644 | |
--- a/sampleAddon-extension-webapp/pom.xml | |
+++ b/sampleAddon-extension-webapp/pom.xml | |
@@ -41,7 +41,7 @@ | |
</dependencies> | |
<build> | |
- <finalName>SampleAddOn</finalName> | |
+ <finalName>sampleAddOn</finalName> | |
</build> | |
</project> | |
diff --git a/sampleAddon-extension-webapp/src/main/webapp/groovy/portal/webui/container/UIAddOnContainer.gtmpl b/sampleAddon-extension-webapp/src/main/webapp/groovy/portal/webui/container/UIAddOnContainer.gtmpl | |
index ea8d738..9b4e217 100644 | |
--- a/sampleAddon-extension-webapp/src/main/webapp/groovy/portal/webui/container/UIAddOnContainer.gtmpl | |
+++ b/sampleAddon-extension-webapp/src/main/webapp/groovy/portal/webui/container/UIAddOnContainer.gtmpl | |
@@ -1,4 +1,4 @@ | |
<div> | |
- uicomponent.renderChildren(); | |
+ <%uicomponent.renderChildren(); %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment