cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Module with Site evaluator

isra_vass
Champ on-the-rise
Champ on-the-rise

Hello,

I am trying to apply a custom module (to hide some docLib Actions) only to certains Sites. For that, I am using the "site.module.evaluators", but I cannot figure out how to do it for more than one site.

The evaluator  I am using looks like:

<evaluator type="site.module.evaluator">
<params>
<sites>SiteA,SiteB,SiteC</sites>
</params>
</evaluator>

But this way does not work. However, if I just put one site, it works.

Does anyone know how to pass serveral Sites to the evaluator?

I spent some time looking online but could not find any answer

Best regards!

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

The condition is evaluated as a regular expression:

https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/extensibility/Sli...

So you need to add somethig like:

<evaluator type="site.module.evaluator">
  <params>
    <sites>SiteA|SiteB|SiteC</sites>
  </params>
</evaluator>
Hyland Developer Evangelist

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

The condition is evaluated as a regular expression:

https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/extensibility/Sli...

So you need to add somethig like:

<evaluator type="site.module.evaluator">
  <params>
    <sites>SiteA|SiteB|SiteC</sites>
  </params>
</evaluator>
Hyland Developer Evangelist

Thank you so much Angel.