AnsweredAssumed Answered

category.ftl problem

Question asked by woody on Jul 16, 2010
Latest reply on Jul 16, 2010 by mikeh
Hi all

today I'm trying to use the categoy control in a form, but I cannot be ale to add my custom categories list.

First I've add a simply field to my custom model


<property name="my:qualification">
               <type>d:text</type>
</property>

then, in share-form-config.xml I add


<field id="my:qualification" label="Main position">
   <control template="controls/category.ftl">
   </control>
</field>

And then I add my category list within the file "Repository/config/alfresco/bootstrap/categories.xml" in this way

 
<cm:category>
   <cm:name>Qualify</cm:name>
      <cm:subcategories>
   <cm:category>
      <cm:name>Model</cm:name>
        </cm:category>
   <cm:category>
          <cm:name>Promoter</cm:name>
   </cm:category>
   <cm:category>
        <cm:name>Special</cm:name>
        <cm:subcategories>
         <cm:category>
            <cm:name>Artists</cm:name>
                            <cm:subcategories>
                  <cm:category>
                       <cm:name>Actor</cm:name>
                  </cm:category>
                  <cm:category>
                     <cm:name>Clown</cm:name>
                      </cm:category>
                  <cm:category>
                     <cm:name>Mage</cm:name>
                  </cm:category>
               </cm:subcategories>
           </cm:category>
      </cm:subcategories>
         </cm:category>
   </cm:subcategories>
</cm:category>

After a correct deploy, nothing happen in the popup control managing categories in share form. Why?

Where I have to change this category list?
Is also possible to hide all other categories in the popup frame? I would like to see only my custom category list.

Maybe this is not the right use of category, but is exactly what we need for that kind of filed (UI speaking).

thx

Outcomes