cancel
Showing results for 
Search instead for 
Did you mean: 

custom config

sihnu
Champ in-the-making
Champ in-the-making
Hi

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">
      <forms>
         <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">
         <list>
            <value>classpath:alfresco/web-extension/dod-5015-form-config-custom.xml</value>
         </list>
      </property>
   </bean>

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

sihnu
Champ in-the-making
Champ in-the-making
I think
classpath:
is causing this… Where does it point? What is that?

Edit: This same thing happens to other config-files too… I really would like to get those working so that I should not modify outside the shared folder. Please help.

joshijimit
Champ on-the-rise
Champ on-the-rise
Check the template path is correct.. in view-form and edit-form..