cancel
Showing results for 
Search instead for 
Did you mean: 

Two column edit form: meta data and content viewer

spdaly01
Champ in-the-making
Champ in-the-making
I have a requirement that will allow users to edit meta data on an uploaded TIFF image while viewing the image at the same time.  Essentially a two-column form.  One column will have the content viewer.  The second column will have the meta data fields open for editing.

I have been through all the wiki articles on the Forms Service - and the install guide which has some EXCELLENT content outside of just the initial installation and configuration of Alfresco - and I'm totally confused as to where to start.

I have made some of the changes outlines in the documentation and I don't see them in the form.

Is there a concise resource on how to work with the Forms Service??
1 REPLY 1

spdaly01
Champ in-the-making
Champ in-the-making
I spent some time futzing around with the sample in the Installation Guide.  I mod'd the share-config-custom.xml and I was able to get customizations to the cm:content form to show in Share.

I then merged the document-details template with the edit-metadata template to get the 2 column form that I was looking for.  The problem now is the #include statement.  When I click "Edit Metadata" the form errors out saying that it cannot find the include, but it is in the template classpath.

I'm almost there!!!! Any help would be much appreciated!!!


<#include "/org/alfresco/include/alfresco-template.ftl" />
<@templateHeader>
   <@link rel="stylesheet" type="text/css" href="${url.context}/templates/edit-metadata/edit-metadata.css" />
</@>

<@templateBody>
   <div id="alf-hd">
      <@region id="header" scope="global" protected=true />
      <@region id=doclibType + "title" scope="template" protected=true />
      <@region id=doclibType + "navigation" scope="template" protected=true />
   </div>
   <div id="bd">
      <div class="yui-g">
         <div class="yui-g first">
            <#if (config.scoped['DocumentDetails']['document-details'].getChildValue('display-web-preview') == "true")>
            <@region id=doclibType + "web-preview" scope="template" protected=true />
            </#if>

         </div>
         <div class="yui-g">
      <div class="metadata">
         <@region id=doclibType + "edit-metadata-mgr" scope="template" protected=true />
         <@region id=doclibType + "edit-metadata" scope="template" protected=true />
      </div>
         </div>
      </div>

      <@region id="html-upload" scope="template" protected=true />
      <@region id="flash-upload" scope="template" protected=true />
      <@region id="file-upload" scope="template" protected=true />
   </div>
  
   <script type="text/javascript">//<![CDATA[
   new ${jsType}().setOptions(
   {
      nodeRef: new Alfresco.util.NodeRef("${url.args.nodeRef}"),
      siteId: "${page.url.templateArgs.site!""}",
      rootNode: new Alfresco.util.NodeRef("${rootNode}")
   });
   //]]></script>

</@>


<@templateFooter>
   <div id="alf-ft">
      <@region id="footer" scope="global" protected=true />
   </div>
</@>