cancel
Showing results for 
Search instead for 
Did you mean: 

custom css not loading in workflow form

purohitsumit
Champ in-the-making
Champ in-the-making
Hi All,

I am trying to add some css style to my workflow forms.
Based on following documentation

http://docs.alfresco.com/community/topic/com.alfresco.community.doc/tasks/forms-fieldlable-change.ht...


I have added my css file in  "C:\Alfresco\tomcat-share\webapps\share\custom\forms\custom-label-loyout.css"

and have added css dependency in form configuration as



<config evaluator="string-compare" condition="activiti$eDCR">
      <forms>
      <dependencies>
         <css src="/custom/forms/custom-label-layout.css" />
      </dependencies>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />

……
……

<config evaluator="task-type" condition="fgwf:changeRequest">
      <forms>
      <dependencies>
         <css src="/custom/forms/custom-label-layout.css" />
      </dependencies>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="fgwf:reasonOfChange" />

…..
………….
………..




But I don't see share loading this css. Firebug does not show making request for this file. And form style is unchanged ?

Am I adding file to correct location ? I am using alfresco 4.2.c

thanks
sumit
2 REPLIES 2

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

instead of adding them in your workflow task evaluators add it in top as a separate tag

<config>
         <forms>
            <dependencies>
               <css src="/custom/forms/custom-label-layout.css" />
            </dependencies>
      </forms>
   </config>  

Thanks,
That solve the problem.