05-06-2013 11:41 AM
When there are only Nuxeo Studio-defined fields or only manually defined ones, they are displayed correctly in the Nuxeo UI. But when both happen together on a single document, Studio-generated fields are moved to the right a little bit compared to manually configured ones.
About my settings : I'm developing on Nuxeo 5.7-SNAPSHOT, and my Studio project is accordingly set to Nuxeo DM 5.7 (DEV version). There is nothing else special in my Nuxeo Studio settings, and my use is limited to types, fields and layouts (besides using JSON definition of some existing types to extend).
Cause :
Studio fields are displayed in table cells with colspan="2". That's because of the custom field layout template (my-form-layout-template.xhtml) used ibyStudio, here's an excerpt :
<c:set var="colspan" value="#{layoutRow.properties[colspanName]}" />
<c:set var="renderingColspan" value="#{2*colspan*layout.columns}" />
<c:set var="renderingColspanMin" value="#{2*1*layout.columns}" />
Possible solutions :
for instance
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>content</widget>
</row>
But is that really necessary ?? Any cleaner solution ? Or should I create a JIRA ?
(first asked on Nuxeo Forum at http://forum.nuxeo.com/?t=msg&goto=19398 )
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.