07-08-2016 03:22 PM
07-11-2016 06:39 AM
<config evaluator="string-compare" condition="DocumentLibrary">
<create-content>
<content id="plain-text" label="create-content.text" type="pagelink" index="10" icon="text">
<param name="page">create-content?destination={nodeRef}&itemId=cm:content&mimeType=text/plain</param>
</content>
<content id="html" label="create-content.html" type="pagelink" index="20">
<param name="page">create-content?destination={nodeRef}&itemId=cm:content&mimeType=text/html</param>
</content>
<content id="xml" label="create-content.xml" type="pagelink" index="30">
<param name="page">create-content?destination={nodeRef}&itemId=cm:content&mimeType=text/xml</param>
</content>
<content id="folder" label="create-content.folder" icon="folder" index="5" type="javascript">
<param name="function">onNewFolder</param>
</content>
</create-content>
</config>
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onNewCustomFolder",
fn: function XXXX_onNewCustomFolder(p_obj)
{
…
}
});
var templateUrl = YAHOO.lang.substitute(Alfresco.constants.URL_SERVICECONTEXT + "components/form?itemKind={itemKind}&itemId={itemId}&destination={destination}&mode={mode}&submitType={submitType}&formId={formId}&showCancelButton=true",
{
itemKind: "type",
itemId: "———++scjmodel:mytype++—————",
destination: destination,
mode: "create",
submitType: "json",
formId: "doclib-common"
});
<config evaluator="model-type" condition="scjmodel:mytype">
<forms>
<!– Document Library Common form –>
<form id="doclib-common">
<field-visibility>
…
</field-visibility>
<appearance>
…
</appearance>
</form>
</forms>
</config>
11-04-2016 11:05 AM
Hi, I was wondering if there was a way to adapt this for space template items? I have a few space templates with custom aspects applied and I'd like the create form to show the metadata fields to be filled in.
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.