Alfresco custom data list layout -


i have created custom data list in alfresco, , have populated model desired data columns. however, when view list in alfresco share, order off, , there elements have not defined in model.

i have searched extensively how fix this, , have not been successful. understand, need define layout in share-config-custom.xml, have attempted below (snippet of added):

  <config evaluator="model-type" condition="orpdl:orplist">  		<forms>  			<form>  				<field-visibility>  					<show id="orpdl:programname" />  				</field-visibility>  				<create-form template="../data-lists/forms/dataitem.ftl" />  				<appearance>  					<field id="orpdl:programname">                         <control template="/org/alfresco/components/form/controls/textarea.ftl" />  					</field>                 </appearance>  			</form>  		</forms>  	</config>  	  	<config evaluator="node-type" condition="orpdl:orplist">  		<forms>  			<form>  				<field-visibility>  					<show id="orpdl:programname" />  				</field-visibility>  				<create-form template="../data-lists/forms/dataitem.ftl" />  				<appearance>  					<field id="orpdl:programname">                         <control template="/org/alfresco/components/form/controls/textarea.ftl" />  					</field>                 </appearance>  			</form>  		</forms>  	</config>

content model:

<?xml version="1.0" encoding="utf-8"?>  <!-- definition of new model -->  <model name="orpdl:orpdatalistmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">    	<!-- optional meta-data model -->  	<description>information retrieved opportunity registration process workflow form.</description>  	<author>alan george</author>  	<version>1.0</version>    	<!-- imports required allow references definitions in other models -->  	<imports>  		<!-- import alfresco dictionary definitions -->  		<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />  		<!-- import alfresco content domain model definitions -->  		<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />  		<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />  		<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl" />  	</imports>    	<!-- introduction of new namespaces defined model -->  	<namespaces>  		<namespace uri="http://www.test.com/model/orpdatalistmodel/1.0" prefix="orpdl" />  	</namespaces>  	  	<constraints>          <constraint name="orpdl:contracttypelist" type="list">  			<parameter name="allowedvalues">  				<list>  				        <value>t&amp;m</value>  				        <value>ffp</value>  				        <value>cpff</value>  				        <value>cpif</value>  				</list>  	        </parameter>  		</constraint>  	</constraints>  	  	<types>  		<type name="orpdl:orplist">  			<title>opportunity registration process</title>  			<description>information retrieved opportunity registration process workflow form.</description>  			<parent>dl:datalistitem</parent>  			<properties>  				<property name="orpdl:programname">  					<title>program name</title>  					<type>d:text</type>  					<mandatory>true</mandatory>  				</property>  				<property name="orpdl:programdescription">  					<title>program description</title>  					<type>d:text</type>  					<mandatory>true</mandatory>  				</property>  				<property name="orpdl:client">  					<title>client</title>  					<type>d:text</type>  					<mandatory>true</mandatory>  				</property>  				<property name="orpdl:contracttype">  					<title>contract type</title>  					<type>d:text</type>  					<mandatory>true</mandatory>  					<constraints>  						<constraint ref="orpdl:contracttypelist" />  					</constraints>  				</property>  				<property name="orpdl:value">  					<title>value</title>  					<type>d:text</type>  					<mandatory>true</mandatory>  				</property>  			</properties>  		</type>  	</types>  </model>

the goal of code have programname text box appear. i'm seeing:

datalist

what missing?

you entering wrong condition in <config> tag.
below

<config evaluator="model-type" condition="orpdl:orpdatalistmodel">

should replace

<config evaluator="model-type" condition="orpdl:issueslist">

this apply node-type.

enter image description here


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -