AnsweredAssumed Answered

How to select content type by space name?

Question asked by roby71 on Feb 22, 2008
Latest reply on Feb 26, 2008 by rivarola
Hello,

I created a space named "MyBooks"

then I created a costum content-typeadding it definition in file
customModel.xml
below the snippest of customModel.xml

<type name="custom:MyBook">
         <title>My Books</title>
         <parent>cm:content</parent>
         <properties>
            <property name="custom:myBookTitle">
               <title>Title</title>
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="custom:myBookNumPages">
               <title>Page number</title>
               <type>d:int</type>
               <mandatory>true</mandatory>
            </property>
             <property name="custom:myBookBuyDate">
               <title>Buy date</title>
               <type>d:date</type>
               <mandatory>true</mandatory>
            </property>
             …. and so on…
         </properties>
      
      </type>


then I customized web-client-config-custom.xml file…

all things works fine!

Now, I would like to add this feature: :idea:

When I upload a new document in space "MyBooks"
the Alfresco wizzard GUI select as default in the contet-type drop-down-list
the value "Content".

Indeed, I would like to show in the drop-down-list as default value the name of the space, that is "MyBooks" and not "Content"

Anyone could help me please?

Thanks,
regards,

Outcomes