cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.0 SDK CustomAspect NO GO

phanman
Champ in-the-making
Champ in-the-making
Guys,

Yes I'm new, but perhaps you can steer me to the correct answer.

Custom Aspect would be of use to me in a solution.  I got the latest labs and sdk and am working on the contentHits aspect in the sdk.  It builds and creates the jar file which I deployed to the webapps/alfresco/WEB-INF/lib directory.

After restarting the server (succesfully), I still do not see the contentHits aspect in the pull down list.   I have done a more simple one from another source that modifies files in /shared/classes/alfresco/extension and that shows up.

What magic must I conjure to get this to show up?


Thanks in advance for you patience with this newbie.

Jc
3 REPLIES 3

phanman
Champ in-the-making
Champ in-the-making
I figured out to add :

  <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <aspect name="ch:contentHits"/>
      </aspects>
   </config>

to the web-client-content-custom.xml file.  It now shows up in the list and I can add the aspect to content.

Anybody know how to make it show up in the contents' information pane?

phanman
Champ in-the-making
Champ in-the-making
OK, after trial and error, this code:

   <config evaluator="aspect-name" condition="ch:contentHits">
      <property-sheet>
         <show-property name="ch:readCount" display-label-id="readcount" />
      </property-sheet>
   </config>

added to the web-client-content-custom.xml will result in the counter showing up.  It however shows up as :  $$readcount$$: 13,  Changing the  $$readcount$$ to something more readable is the next task.