cancel
Showing results for 
Search instead for 
Did you mean: 

Subtype of cm:folder not showing in WebClient

brianmp
Champ in-the-making
Champ in-the-making
Hi

I have created a specialized space with cm:folder as parent, but when i create a new space (using the Advanced Space Wizard), i does not show in the folder where i created it.

Am i missing something important?

Any help would be appreciated…

Regards
Brian

Note: The spaces does show in the Node Browser.
7 REPLIES 7

brianmp
Champ in-the-making
Champ in-the-making
My xml files, if anyone is interested.

3dModel.xml:

<?xml version="1.0" encoding="UTF-8"?>
<model name="test:3Dmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <description>3D Model (Simple)</description>
   <author></author>
   <version>1.0</version>
   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>

   <namespaces>
      <namespace uri="test.3d.model" prefix="test"/>
   </namespaces>

   <types>
      <type name="test:3Dfolder">
         <title>3D model</title>
         <description>A 3D model folder.</description>
         <parent>cm:folder</parent>
      </type>
    </types>
</model>

web-client-config-custom.xml:

<alfresco-config>
   <config evaluator="node-type" condition="test:3Dfolder">
   </config>

   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <folder-types>
            <type name="test:3Dfolder" />
         </folder-types>
      </advanced-search>
   </config>

   <config evaluator="string-compare" condition="Space Wizards">
      <folder-types>
         <type name="test:3Dfolder" icon="/images/icons/space-3d.gif" />
      </folder-types>
   </config>

   <config evaluator="string-compare" condition="test:3Dfolder icons">
      <icons>
         <icon name="space-icon-3d" path="/images/icons/space-icon-3d.gif"/>
      </icons>
   </config>

   <config evaluator="string-compare" condition="Action Wizards">
      <subtypes>
         <type name="test:3Dfolder" />
      </subtypes>
      <specialise-types>
         <type name="test:3Dfolder" />
      </specialise-types>
   </config>
</alfresco-config>

Version:  Community Network - v2.1.0 (482)

If more information is needed to help, please feel free to ask.

loftux
Star Contributor
Star Contributor
Have you tried to specialise type:
Run Action - Select 'Specialise Type' and select your custom type.

Since you have not defined any new properties, it would look the same. But you should now be able to search for it using advanced search.

/Peter Löfgren

brianmp
Champ in-the-making
Champ in-the-making
Hi Peter

I tried creating a normal space (Create Space). This is visible in the Browse Spaces list, as expected.
When i specialise it (Run Action -> Specialise Type), it disappears from the Browse Spaces list.

Regarding the properties: This is a simple version with everything but the essentials removed. I made this simple version to test what is going wrong with displaying the custom space.

Any other suggestions?

Regards
Brian

loftux
Star Contributor
Star Contributor
I see, I misunderstood you and thought you were unable to create your custom space at all.

Maybe this
 
<config evaluator="node-type" condition="test:3Dfolder">
</config>
is what makes it disappear. Try removing it.

Regards,
Peter

brianmp
Champ in-the-making
Champ in-the-making
Hi Peter

I tried removing the empty config block, but unfortunately it makes no difference…

Regards
Brian

gavinc
Champ in-the-making
Champ in-the-making
How strange!

I've just tried this on the latest HEAD code and I've been able to reproduce the problem.

Could you possibly raise an issue in JIRA for the problem? This will have the added benefit that you'll be informed when it's fixed!

Interestingly though if you change the type so it doesn't start with a number i.e. call your type test:folder3d then it works! This could be a short term workaround.

brianmp
Champ in-the-making
Champ in-the-making
Hi Gavin

Thank you, this bug was getting a little bit annoying. Renaming the the type is no problem, so thats the solution i will go with.

I have raised the issue in JIRA. (http://issues.alfresco.com/browse/AWC-1866)

Regards
Brian