AnsweredAssumed Answered

custom config

Question asked by sihnu on Apr 7, 2011
Latest reply on Apr 18, 2011 by joshijimit

I've been working on dod5015-form-config-custom file. I've added the bean that defines the config-file to my context file. That works well. Ok, so the config file is picked up. But my customization in the config file is not. I want to use my own customized record metadata template (record-metadata.ftl). So I've made my own record-metadata-custom.ftl and I've placed it in /tomcat/shared/classes/alfresco/web-extension/ directory. The config-file is in the same directory. I modified this in my custom config file:

 <config evaluator="node-type" condition="cm:content" replace="true">
         <form id="rm">
            <view-form template="record-metadata-custom.ftl" />
            <edit-form template="record-metadata-custom.ftl" />


So view-form template and edit form-template should point to record-metadata-custom.ftl. Anyway, that's not happening. Is the tamplate file in a wrong place? Any help would be appreciated.

Edit: The problem is not in the template file. I pointed the original dod-5015-config file to my custom template and it actually uses it. But if I try to use my custom config file instead it doesn't work and none of the fields in the template are drawn. I've got my dod-5015-custom-config file in the web-extension folder and this is the bean in my context file:

<bean id="dod5015.custom.config" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register">
      <property name="configService" ref="web.config" />
      <property name="configs">

No error is displayed but no fields are drawn that are defined in the template file.