I have a question. When navigating a tree workspace -> folder in the right window pane there is a table with the files that belong to that folder. By default, there are 6 columns: -checkbox - file type icon - title -modified - author - state
The same columns appear after the Simple search. I would like to add another column from a custom document type. I tried altering the +/nuxeo.war/incl/document_table.xhtml+ and +/nuxeo.war/incl/document_table_simple.xhtml+ and packaging it, but no luck. The results still show up with the default columns. The Custom document type is working fine, and the field I am trying to display is fed from a vocabulary csv file when the doc is created, if that matters. The custom doc is stored correctly when loaded into nuxeo. Can someone lead me to the right approach? Thanks in advance. --------------------------------------------------------------------- The +document_table.xhtml+ (*in bold are my changes*) : ---------------------------------------------------------------------- +<div xmlns="http://www.w3.org/1999/xhtml"+ +xmlns:ui="http://java.sun.com/jsf/facelets"+ +xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"+ +xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"+ +xmlns:nxu="http://nuxeo.org/nxweb/util"+ +xmlns:t="http://myfaces.apache.org/tomahawk"+ +xmlns:nxd="http://nuxeo.org/nxweb/document"+ +xmlns:nxh="http://nuxeo.org/nxweb/html"+ +xmlns:s="http://jboss.com/products/seam/taglib"+ +*xmlns:ln="http://nuxeo.org/schemas/loan"*>+ +<a4j:region rendered="#{documents != null}">+ +<h:form id="#{documents.name}">+ +<ui:insert name="empty_folder_label">+ +<h:outputText value="#{messages['label.content.emptyFolder']}"+ +rendered="#{documents.rowCount == 0}" />+ +</ui:insert>+ +<ui:include src="/pagination/pageNavigationControls.xhtml" />+ +<nxu:dataTable id="dataTable" value="#{documents.rows}" var="row"+ +rowClasses="dataRowEven,dataRowOdd" styleClass="dataOutput"+ +rendered="#{documents.rowCount > 0}">+ +<!-- id and selection -->+ +<nxu:column styleClass="iconColumn" rendered="#{showCheckboxes or false}">+ +<f:facet name="header">+ +<h:selectBooleanCheckbox rendered="true"+ +onclick="selectDataTablePageForDocument('#{documents.name}', '#{providerName}', this.checked, '#{listName}', '#{currentDocument.ref}')" title="#{messages['tooltip.content.select.all']}">+ +</h:selectBooleanCheckbox>+ +</f:facet>+ +<h:selectBooleanCheckbox+ +value="#{row.selected}"+ +onclick="selectDataTableRowForDocument('#{row.data.ref}', '#{providerName}', this, '#{listName}', '#{currentDocument.ref}')">+ +</h:selectBooleanCheckbox>+ +</nxu:column>+ +<!-- Icon + Type -->+ +<nxu:column styleClass="iconColumn">+ +<div id="docRefTarget:#{row.data.ref}">+ +<div id="docRef:#{row.data.ref}" class="cell popupTarget" docRef="#{row.data.ref}">+ +<h:graphicImage value="/icons/lock.gif"+ +rendered="#{not empty row.data.lock}"/>+ +<nxu:graphicImage+ +value="#{nxd:iconPath(row.data)}" alt="#{row.data.type}">+ +</nxu:graphicImage></div></div>+ +<script type="text/javascript">+ +<h:outputText+ +value="new Draggable('docRef:#{row.data.ref}', {revert:true});"/>+ +<h:outputText rendered="#{row.data.folder}"+ +value="Droppables.add('docRefTarget:#{row.data.ref}', {accept:'cell', onDrop:function(element){moveElement(element,'docRef:#{row.data.ref}')}, hoverclass:'dropInto'});"/>+ +</script>+ +</nxu:column>+ +<!-- Title -->+ +<nxu:column>+ +<f:facet name="header">+ +<h:panelGroup>+ +<h:commandLink immediate="true" action="#{sortActions.repeatSearch}"+ +rendered="#{provider.sortable}" >+ +<h:outputText value="#{messages['label.content.header.title']}" />+ +<f:param name="providerName" value="#{providerName}" />+ +<f:param name="sortColumn" value="dc:title" />+ +<h:panelGroup rendered="#{provider.sortInfo.sortColumn == 'dc:title' }" >+ +<h:graphicImage value="/icons/arrow_down.gif"+ +rendered="#{provider.sortInfo.sortAscending}" />+ +<h:graphicImage value="/icons/arrow_up.gif"+ +rendered="#{!provider.sortInfo.sortAscending}" />+ +</h:panelGroup>+ +</h:commandLink>+ +<h:outputText value="#{messages['label.content.header.title']}"+ +rendered="#{!provider.sortable}" />+ +</h:panelGroup>+ +</f:facet>+ +<nxd:documentLink title="#{nxd:titleOrId(row.data)}"+ +document="#{row.data}" rendered="false"/>+ +<nxd:restDocumentLink document="#{row.data}">+ +<span id="title_#{row.data.ref}">+ +<nxh:outputText value="#{nxd:titleOrId(row.data)}"/>+ +</span>+ +</nxd:restDocumentLink>+ +<nxd:restDocumentLink document="#{row.data}" newConversation="true" target="_tab">+ +<img src="img/external.gif" style="vertical-align:middle"+ +alt="#{messages['permalink.newTab']}"+ +title="#{messages['permalink.newTab']}"/>+ +</nxd:restDocumentLink>+ +</nxu:column>+ +*<!-- DocumentType-->*+ +*<nxu:column>*+ +*<f:facet name="header">*+ +*<h:panelGroup>*+ +*<h:commandLink immediate="true" action="#{sortActions.repeatSearch}"*+ +*rendered="#{provider.sortable}" >*+ +*<h:outputText value="#{messages['label.content.header.doctype']}" />*+ +*<f:param name="providerName" value="#{providerName}" />*+ +*<f:param name="sortColumn" value="loan:doctype" />*+ +*<h:panelGroup rendered="#{provider.sortInfo.sortColumn == 'loan:doctype'}" >*+ +*<h:graphicImage value="/icons/arrow_down.gif"*+ +*rendered="#{provider.sortInfo.sortAscending}" />*+ +*<h:graphicImage value="/icons/arrow_up.gif"*+ +*rendered="#{!provider.sortInfo.sortAscending}" />*+ +*</h:panelGroup>*+ +*</h:commandLink>*+ +*<h:outputText value="#{messages['label.content.header.doctype']}"*+ +*rendered="#{!provider.sortable}" />*+ +*</h:panelGroup>*+ +*</f:facet>*+ +*<h:outputText value="#{doc.loan.doctype}" />*+ +*</nxu:column>*+ +<!-- Modification date -->+ +<nxu:column>+ +<f:facet name="header">+ +<h:panelGroup>+ +<h:commandLink immediate="true" action="#{sortActions.repeatSearch}"+ +rendered="#{provider.sortable}" >+ +<h:outputText value="#{messages['label.content.header.modified']}" />+ +<f:param name="providerName" value="#{providerName}" />+ +<f:param name="sortColumn" value="dc:modified" />+ +<h:panelGroup rendered="#{provider.sortInfo.sortColumn == 'dc:modified' }" >+ +<h:graphicImage value="/icons/arrow_down.gif"+ +rendered="#{provider.sortInfo.sortAscending}" />+ +<h:graphicImage value="/icons/arrow_up.gif"+ +rendered="#{!provider.sortInfo.sortAscending}" />+ +</h:panelGroup>+ +</h:commandLink>+ +<h:outputText value="#{messages['label.content.header.modified']}"+ +rendered="#{!provider.sortable}" />+ +</h:panelGroup>+ +</f:facet>+ +<h:outputText value="#{row.data.dublincore.modified}">+ +<f:convertDateTime pattern="#{nxu:basicDateAndTimeFormater()}" />+ +</h:outputText>+ +</nxu:column>+ +<!-- Author -->+ +<h:column>+ +<f:facet name="header">+ +<h:panelGroup>+ +<h:commandLink immediate="true" action="#{sortActions.repeatSearch}"+ +rendered="#{provider.sortable}" >+ +<h:outputText value="#{messages['label.content.header.author']}" />+ +<f:param name="providerName" value="#{providerName}" />+ +<f:param name="sortColumn" value="dc:creator" />+ +<h:panelGroup rendered="#{provider.sortInfo.sortColumn == 'dc:creator' }" >+ +<h:graphicImage value="/icons/arrow_down.gif"+ +rendered="#{provider.sortInfo.sortAscending}" />+ +<h:graphicImage value="/icons/arrow_up.gif"+ +rendered="#{!provider.sortInfo.sortAscending}" />+ +</h:panelGroup>+ +</h:commandLink>+ +<h:outputText value="#{messages['label.content.header.author']}"+ +rendered="#{!provider.sortable}" />+ +</h:panelGroup>+ +</f:facet>+ +<h:outputText value="#{nxu:userFullName(row.data.dublincore.creator)}" />+ +</h:column>+ +<!-- Life cycle -->+ +<h:column>+ +<f:facet name="header">+ +<h:panelGroup>+ +<h:commandLink immediate="true" action="#{sortActions.repeatSearch}"+ +rendered="#{provider.sortable}" >+ +<h:outputText value="#{messages['label.content.header.currentLifecycleState']}" />+ +<f:param name="providerName" value="#{providerName}" />+ +<f:param name="sortColumn" value="ecm:currentLifeCycleState" />+ +<h:panelGroup rendered="#{provider.sortInfo.sortColumn == 'ecm:currentLifeCycleState' }" >+ +<h:graphicImage value="/icons/arrow_down.gif"+ +rendered="#{provider.sortInfo.sortAscending}" />+ +<h:graphicImage value="/icons/arrow_up.gif"+ +rendered="#{!provider.sortInfo.sortAscending}" />+ +</h:panelGroup>+ +</h:commandLink>+ +<h:outputText value="#{messages['label.content.header.currentLifecycleState']}"+ +rendered="#{!provider.sortable}" />+ +</h:panelGroup>+ +</f:facet>+ +<h:outputText value="#{messages[row.data.currentLifeCycleState]}" />+ +</h:column>+ +<!-- Live edit -->+ +<nxu:column styleClass="iconColumn">+ +<nxu:methodResult name="editable"+ +value="#{liveEditHelper.isDocumentLiveEditable(row.data, 'file', 'content')}">+ +<h:outputLink value="#{nxd:liveEditUrl(row.data, 'file', 'content', 'filename')}"+ +rendered="#{editable}">+ +<h:graphicImage value="/icons/application_form_edit.png"+ +alt="#{messages['label.document.directEdit']}"+ +title="#{messages['label.document.directEdit']}"/>+ +</h:outputLink>+ +</nxu:methodResult>+ +</nxu:column>+ +</nxu:dataTable>+ +<ui:include src="/pagination/pageNavigationControls.xhtml" />+ +<ui:insert name="buttons" />+ +<div class="syndicationContainer">+ +<ui:insert name="syndication_buttons">+ +<f:subview rendered="#{currentDocument.folder}">+ +<ui:include src="/incl/syndication_buttons.xhtml">+ +<ui:param name="type" value="document" />+ +</ui:include>+ +</f:subview>+ +</ui:insert>+ +</div>+ +</h:form>+ +</a4j:region>+ +<ui:include src="/incl/popupMenu.xhtml"/>+ +<script>+ +// init menu+ +//jQuery("table td div div.popupTarget").contextMenu("popupMenu");+ +setupContextMenu("table td div div.popupTarget");+ +</script>+ +</div>+ -- Posted by "chksi" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2222#6001> _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
