cancel
Showing results for 
Search instead for 
Did you mean: 

How to custom a space

thibaut
Champ in-the-making
Champ in-the-making
Hello,

can we create different king of spaces on Alfresco ?
if yes, how can i do this ?

i've already customized document types and i'm trying to integrate this example http://forums.alfresco.com/viewtopic.php?t=6817 .
After having compiled the differents files, i can chosse in the space wizard my new king of space but i can't save the new values referenced in.
So in the part "view details" of my space my new values are always empty.

I think i have to add a new config in my new web-client-config-custom.xml.

I tried this

   <config evaluator="node-type" condition="custom:projectSpace">
      <property-sheet>
         <show-property name="custom:Solution" show-in-edit-mode="true" />
      </property-sheet>
   </config>
   
   <config evaluator="string-compare" condition="Space Wizards">
      <folder-types>
         <type name="custom:projectSpace" />
      </folder-types>
   </config>

but property "customSmiley Frustratedolution" does not appeared .

Have I forgotten a config ?

Thanks for yours answers


Thibaut
13 REPLIES 13

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

Your configuration seems OK. What is your Alfresco version ?

thibaut
Champ in-the-making
Champ in-the-making
hello,

i'm using alfresco 2.1.0 (i think its the latest version).

rivarola
Champ on-the-rise
Champ on-the-rise
Well it should work. Can you post your customSmiley TonguerojectSpace type definition ?

thibaut
Champ in-the-making
Champ in-the-making
re,

first thanks to help me 🙂

my project space is this :

<?xml version="1.0" encoding="UTF-8"?>

<!– Definition of new Model –>
<model name="custom:customModel"
xmlns="http://www.alfresco.org/model/dictionary/1.0">

<!– Imports are required to allow references to definitions in other models –>
   <imports>
        <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>

<!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="extension.custom" prefix="custom" />
   </namespaces>
<types>

<!– Definition of new Content Type: Standard Operating Procedure –>
   <type name="custom:projectSpace">
      <title>ProjectSpace</title>
      <parent>cm:folder</parent>
      <properties>
         <property name="custom:Solution">
            <type>d:text</type>
            <mandatory>true</mandatory>
         </property>
      </properties>
   </type>
</types>
</model>

rivarola
Champ on-the-rise
Champ on-the-rise
Well I copied your type definition and web-client custom config in my own Alfresco instance (2.2 dev, not 2.1) and it works.
I don't see the Solution property in the space creation wizard but I see it in the space details once created -> all is normal ! :roll:

thibaut
Champ in-the-making
Champ in-the-making
re,

I also see the Solution property in the space details but it's empy because i don't see it in the space creation wizard.
Can you record it via your space creation wizard ?

THanks

rivarola
Champ on-the-rise
Champ on-the-rise
No, the space creation wizard shows a static page that does not take property sheet config into account. Maybe I misunderstood your post, I though you could not see your custom property in the edit space details screen after space creation.

thibaut
Champ in-the-making
Champ in-the-making
Re,

ok i understand, so how can i record my property "solution" if i cannot do it via the space creation wizard ?

Thibaut

rivarola
Champ on-the-rise
Champ on-the-rise
You can assign a default value in the model or seize it in the space details after creation but I think you cannot set a specific value during creation without modifying the wizard  Smiley Sad