cancel
Showing results for 
Search instead for 
Did you mean: 

My spaces view (explorer or share) is not as it should be

bbougon
Champ in-the-making
Champ in-the-making
Hello,

seems weird like subject but I do have an issue I do not understand while configuring custom spaces on bootstrap.

The Alfresco version used is 3.4e.

Here is the story :
- I must create some spaces on bootstrap :
    - The first space (called Admistratif) contains some subspaces
    - The second space (called Equipe) contains some subspaces as well

When I go on both Share and Explorer (after bootstrap has been done of cours) and watching the Repository view, I may see the tree with all spaces (built-in spaces and the ones I have created, Administratif and Equipe) as it should be.
When clicking (tree clicking) on the Administratif space, I may see the sub spaces correctly (tree view) while in the general view I see the Equipe subspaces (see the snapshots below).
In the meantime, if I click on the Administratif subspaces in the tree view, everything works fine.

[img]http://bertrand-bougon.fr/wp-content/uploads/2011/06/alfresco_001.png[/img]
[img]http://bertrand-bougon.fr/wp-content/uploads/2011/06/alfresco_002.png[/img]
[img]http://bertrand-bougon.fr/wp-content/uploads/2011/06/alfresco_003.png[/img]
[img]http://bertrand-bougon.fr/wp-content/uploads/2011/06/alfresco_004.png[/img]
[img]http://bertrand-bougon.fr/wp-content/uploads/2011/06/alfresco_005.png[/img]

So, my question is simple : Why do I see some content that do not belongs to the Administratif space?

here are my configurations files (I do not give you the entire files, just the concerned part in this files) :

custom-import-export-context.xml :

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

   <bean id="spacesBootstrap-base" parent="spacesStoreImporter"
      abstract="true">
      <property name="bootstrapViews">
         <list>

            <props>
               <prop key="path">/${spaces.company_home.childname}</prop>
               <prop key="location">alfresco/extension/bootstrap/equipeSpaces.xml</prop>
               <prop key="messages">alfresco/extension/messages/bootstrap-spaces</prop>
            </props>

            <props>
               <prop key="path">/${spaces.company_home.childname}</prop>
               <prop key="location">alfresco/extension/bootstrap/administratifSpaces.xml</prop>
               <prop key="messages">alfresco/extension/messages/bootstrap-spaces</prop>
            </props>

         </list>
      </property>
   </bean>

</beans>

equipeSpaces.xml (just an example) :

<?xml version="1.0" encoding="UTF-8"?>
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
   xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0"
   xmlns="">
   <cm:folder view:childName="${spaces.company_home.childname}">
      <view:acl view:inherit="false">
         <view:ace view:access="ALLOWED">
            <view:authority>GROUP_EVERYONE</view:authority>
            <view:permission>Consumer</view:permission>
         </view:ace>
      </view:acl>
      <app:uifacets />
      <cm:name>${spaces.equipe.name}</cm:name>
      <app:icon>space-icon-default</app:icon>
      <cm:title>${spaces.equipe.name}}</cm:title>
      <cm:description>${spaces.equipe.description}</cm:description>
      <cm:contains>
         <cm:folder>
            <view:acl view:inherit="false">
               <view:ace view:access="ALLOWED">
                  <view:authority>GROUP_EVERYONE</view:authority>
                  <view:permission>Consumer</view:permission>
               </view:ace>
            </view:acl>
            <app:uifacets />
            <cm:name>${spaces.equipe.equipe_1.name}</cm:name>
            <app:icon>space-icon-default</app:icon>
            <cm:title>${spaces.equipe.equipe_1.name}</cm:title>
            <cm:description>${spaces.equipe.equipe_1.description}
            </cm:description>
         </cm:folder>

      </cm:contains>
   </cm:folder>

</view:view>

administratifSpaces.xml

<?xml version="1.0" encoding="UTF-8"?>
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0"
   xmlns:app="http://www.alfresco.org/model/application/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0"
   xmlns="">
   <cm:folder view:childName="${spaces.company_home.childname}">
      <view:acl view:inherit="false">
         <view:ace view:access="ALLOWED">
            <view:authority>GROUP_EVERYONE</view:authority>
            <view:permission>Consumer</view:permission>
         </view:ace>
      </view:acl>
      <app:uifacets />
      <cm:name>${spaces.administratif.name}</cm:name>
      <app:icon>space-icon-default</app:icon>
      <cm:title>${spaces.administratif.name}}</cm:title>
      <cm:description>${spaces.administratif.description}</cm:description>
      <cm:contains>
         <cm:folder>
            <view:acl view:inherit="false">
               <view:ace view:access="ALLOWED">
                  <view:authority>GROUP_EVERYONE</view:authority>
                  <view:permission>Consumer</view:permission>
               </view:ace>
            </view:acl>
            <app:uifacets />
            <cm:name>${spaces.administratif.administratif_1.name}</cm:name>
            <app:icon>space-icon-default</app:icon>
            <cm:title>${spaces.administratif.administratif_1.name}</cm:title>
            <cm:description>${spaces.administratif.administratif_1.description}
            </cm:description>
         </cm:folder>

      </cm:contains>
   </cm:folder>
</view:view>
2 REPLIES 2

cleseach
Star Contributor
Star Contributor
Hello,

Your xml files show on line 5 :
<cm:folder view:childName="${spaces.company_home.childname}">
You better use your folder name has child name (without spaces).

Have a look on the node browser to see exactly what have been created by the bootstrap sequence.

Regards,
Charles Le Seac'h

bbougon
Champ in-the-making
Champ in-the-making
Thanks Charles for your help, works fine now Smiley Wink