cancel
Showing results for 
Search instead for 
Did you mean: 

CustomAspect Example installation problem.

rguinot
Confirmed Champ
Confirmed Champ
Hi ,
I have a question regarding the CustomAspect Example supplied with the 1.3 SDK :
I have built the jar with the ant script , placed it within the WEB-INF/lib of the alfresco.war , I also placed contentHitsModel.xml and content-hits-context.xml in the jboss/server/default/conf/alfresco/extension .

I see the models are loaded and registered without errors when alfresco starts  .
However the new aspect does not appear in the drop-down list of aspects i can add to content when i create a new rule .

I also tried to add "contentHits" in the list of aspects along with ch:contentHits properties to  web-client-config-custom.xml , but that does not work either .

What am I doing wrong ? i am really interested in this aspect because i would like to generate statistics on which file are downloaded /updated etc …

Thanks in advance ,
Romain .
1 REPLY 1

lb118158
Champ in-the-making
Champ in-the-making
Hi Romain,
Don't forget to add some line in the web-client-config-custum.xml file.
Suppose that the name of the model is "isp.wqa"
1) in <config evaluator="string-compare" condition="Content Wizards">
<content-types>
  ….
    <type name="isp.wqa" />
</contents-types>

<config evaluator="node-type" condition="isp.wqa">
  <property-sheet>
   <show-property name="isp:wqa-pubDate" />
   ….
</property-sheet>
</config>

2) in the file contentHitsModel.xml take into account that <model name="uniqueIdentifier' > …. example isp:wqamodel
the prefix isp must be declared in the <namespaces>

3) in the file content-hits-context.xml take into account that <bean id="an_other_uniqueIdentifier"

Try this and say me if it is OK for you