cancel
Showing results for 
Search instead for 
Did you mean: 

'No configuration found for node type'

msvoren
Champ in-the-making
Champ in-the-making
With latest svn updates, cutom property configuration seems to stop working.
I have /shared/classes/alfresco/web-extension/web-framework-config-custom.xml

Which worked until update (right after custom metadata dropdowns were implemented in share application)

Maybe alfresco changed the way this works?

Thank you,
M
10 REPLIES 10

mikeh
Star Contributor
Star Contributor
That whole area is under development at the moment, so I'd hold off updating if that functionality is important to you.

Thanks,
Mike

msvoren
Champ in-the-making
Champ in-the-making
Mike,
Is there progress on this?

Now i get:
"Not enough configuration found for node type "custom:mytype", at least one <show> element must be present."

I guess this was fixed, it's just i don't know how to use it..
Please help, or suggest documentation.

Thanks,
M

midnitecoder
Champ in-the-making
Champ in-the-making
Anyone else able to get this to work?  I'm trying using Alfresco 3.2 on Windows (just for the moment), trying to view a document in Share.

Thanks,

Bryan

msvoren
Champ in-the-making
Champ in-the-making
To display custom-metadata use:
/shared/classes/alfresco/web-extension/web-framework-config-custom.xml

configuring document type:


<alfresco-config>
   <config evaluator="node-type" condition="custom:someType">
        <forms>
         <form>
          <field-visibility>
       <show id="custom:CustomFiled1" />
          </field-visibility>
        </form>
      </forms>
   </config>
</alfresco-config>


Notice that "evaluator" field changed since last configuration, and they added "forms" tag.
That's why configuration wasn't recognized.

baby77
Champ in-the-making
Champ in-the-making
I add suggested code to web-framework-config-custom.xml,but i am getting added error:

Unable to locate evaluator implementation for 'node-type' for org.alfresco.config.ConfigSectionImpl@8932e8 (evaluator=node-type condition=mm:myModel replace=false)
I change evaluator to aspect because i am using aspect and still not working.
Some ideas.
What is the working code to display/edit custom - metadata in share in web-framework-config-custom.xml?

msvoren
Champ in-the-making
Champ in-the-making
This is.
But make sure you update from the HEAD source, compile and then run.

Your Share application shouldn't be older then 3 weeks I think. Maybe less. Best thing is to update and compile again.

msvoren
Champ in-the-making
Champ in-the-making
And, I don't think you can use this for aspects yet.
Just node type configuration.

baby77
Champ in-the-making
Champ in-the-making
If problem is only in updating i will do that.
Be back when test it.

Tnx for now.

baby77
Champ in-the-making
Champ in-the-making
Hi msvoren
i try what u suggested me,i update my application form svn,but i am still getting the  same error.
This is my log.
06:11:40,153 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webframework.manager' defined in class path resource [alfresco/web-framework-application-context.xml]: Invocation of init method failed; nested exception is org.alfresco.config.ConfigException: Unable to locate evaluator implementation for 'node-type' for org.alfresco.config.ConfigSectionImpl@1fc554b (evaluator=node-type condition=mm:myModel replace=false)
Caused by: org.alfresco.config.ConfigException: Unable to locate evaluator implementation for 'node-type' for org.alfresco.config.ConfigSectionImpl@1fc554b (evaluator=node-type condition=mm:myModel replace=false)

Please listen what have i done.
In document-info.js i add my property like this
Dom.get(this.id + "-meta-FirstName").innerHTML = $html(docData.FirstName);
Then i in folder share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details
add in file document-info.get.html.ftl add
  <div class="info">
         <span class="meta-label">${msg("document-info.FirstName")}:</span>
         <span id="${args.htmlid}-meta-FirstName" class="meta-value"></span>
  </div>
and in document-info.get properties i add
document-info.FirstNamer=FirstName
and in web-extension folder i add web-framework-config-custom.xml to display metadata.

Is this right way to modify custom metadata in share.
Please share your knowledge with me.
Thank you very much. Smiley Happy