04-06-2012 08:02 AM
04-06-2012 08:38 AM
<config evaluator="node-type" condition="mgc:knowledgeBase">
<forms>
<form>
<field-visibility>
<show id="cm:name" />
<show id="mimetype" for-mode="view" />
<show id="size" for-mode="view" />
<show id="cm:author" for-mode="view" />
<show id="cm:creator" for-mode="view" />
<show id="cm:created" for-mode="view" />
<show id="cm:modifier" for-mode="view" />
<show id="cm:modified" for-mode="view" />
<show id="mgc:RegionBase" />
<show id="mgc:ProjectName" />
<show id="mgc:Location" />
</field-visibility>
<appearance>
<set id="knowledgeBaseGroup" appearance="fieldset" label="Knowledge Base" />
<field id="mgc:RegionBase" set="knowledgeBaseGroup" />
<field id="mgc:ProjectName" set="knowledgeBaseGroup" />
<field id="mgc:Location" set="knowledgeBaseGroup" />
</appearance>
</form>
<form id="doclib-simple-metadata">
<field-visibility>
<show id="cm:name" />
<!–<show id="cm:mimetype" />
<show id="cm:size" />
<show id="cm:author" />
<show id="cm:creator" />
<show id="cm:created" />
<show id="cm:modifier" />
<show id="cm:modified" />–>
<show id="mgc:RegionBase" />
<show id="mgc:ProjectName" />
<show id="mgc:Location" />
</field-visibility>
</form>
</forms>
</config>
04-09-2012 12:10 AM
04-09-2012 04:04 AM
Hi Bengrah,
Thanks for the reply..i have already did what u said and it shows my custom properties right..all i need is to change the preview..want to see the preview of my custom property and not of cm:content..
Thanks in advance,
Ranj
04-09-2012 08:18 AM
04-10-2012 04:45 AM
04-10-2012 07:09 AM
/**
* Helper method for plugins to create url tp the node's content.
*
* @method getContentUrl
* @param {Boolean} (Optional) Default false. Set to true if the url shall be constructed so it forces the
* browser to download the document, rather than displaying it inside the browser.
* @return {String} The "main" element holding the actual previewer.
* @public
*/
getContentUrl: function WP_getContentUrl(download)
{
var nodeRefAsLink = this.options.nodeRef.replace(":/", ""),
noCache = "noCache=" + new Date().getTime();
download = download ? "a=true" : "a=false";
return Alfresco.constants.PROXY_URI + "api/node/content/" + nodeRefAsLink + "/" + this.options.name + "?c=force&" + noCache + "&" + download
},
<!– Rendering Action executor beans –>
<bean id="baseRenderingAction" abstract="true" parent="action-executer"
class="org.alfresco.repo.rendition.executer.AbstractRenderingEngine">
<property name="defaultRenditionContentProp"
value="{http://www.alfresco.org/model/content/1.0}content" />
<property name="defaultRenditionNodeType"
value="{http://www.alfresco.org/model/content/1.0}content" />
<property name="mimetypeMap" ref="mimetypeService" />
<property name="contentService">
<ref bean="ContentService" />
</property>
<property name="applicableTypes">
<list>
<value>{http://www.alfresco.org/model/content/1.0}content</value>
</list>
</property>
<property name="nodeService" ref="NodeService" />
<property name="renditionService" ref="RenditionService" />
<property name="behaviourFilter" ref="policyBehaviourFilter" />
<property name="renditionLocationResolver" ref="renditionLocationResolver" />
</bean>
04-11-2012 01:21 AM
09-04-2012 09:47 AM
Tags
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.