Hi,
I have completed the tutorial on how to add a layout but i have the following
challenges:
1. Fields / TextFields are displayed in one line.
2. Labels are not showing as well.
Below is the content of my layout-contrib. Is there something that i'm missing
or not doing?
Thank you for your help.
<component name="org.nuxeo.book.component.layout">
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="layouts">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<layout name="upcoming">
<rows>
<row>
<widget>upcoming_when</widget>
</row>
<row>
<widget>upcoming_who</widget>
</row>
<row>
<widget>upcoming_howmuch</widget>
</row>
</rows>
<widget name="upcoming_when" type="datetime">
<labels>
<label mode="any">When?</label>
</labels>
<translated>false</translated>
<fields>
<field>up:occursOn</field>
</fields>
<properties widgetMode="edit">
<property name="required">true</property>
</properties>
</widget>
<widget name="upcoming_who" type="text">
<labels>
<label mode="any">Who?</label>
</labels>
<translated>false</translated>
<fields>
<field>up:presenter</field>
</fields>
</widget>
<widget name="upcoming_howmuch" type="text">
<labels>
<label mode="any">How much to get in?</label>
</labels>
<translated>false</translated>
<fields>
<field>up:admissionPrice</field>
</fields>
<properties widgetMode="edit">
<property name="required">true</property>
</properties>
</widget>
</layout>
</extension>
</component>
--
Posted by "livhum" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread:
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3145#9337>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm