Skip to content

Commit 58d9c55

Browse files
committed
added more docs and version to schema definition
1 parent 4b552a6 commit 58d9c55

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ Run <code>com.mimacom.liferay.portal.setup.LiferaySetup#setup(java.io.File)</cod
2626
<configuration>
2727
<runasuser>test@liferay.com</runasuser>
2828
</configuration>
29+
30+
<!--
31+
This will add new custom field that can be used in theme to control if ads should display on
32+
particular page.
33+
-->
34+
<customFields>
35+
<field name="showAds" type="boolean" className="com.liferay.portal.model.Layout">
36+
<role-permission role-name="Guest" permission="view"/>
37+
</field>
38+
</customFields>
2939
</setup>
3040
```
3141

db-setup-core/src/main/java/com/mimacom/liferay/portal/setup/MarshallUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private static Unmarshaller getUnmarshaller() throws JAXBException {
7979

8080
public static boolean validateAgainstXSD(final InputStream xml) throws IOException {
8181
ClassLoader cl = MarshallUtil.class.getClassLoader();
82-
URL url = cl.getResource("setup_definition.xsd");
82+
URL url = cl.getResource("setup_definition-1.0.xsd");
8383
if (url == null) {
8484
throw new IOException("XSD configuration not found");
8585
}

0 commit comments

Comments
 (0)