Custom Module with Site evaluator

cancel
Showing results for 
Search instead for 
Did you mean: 
isra_vass
Active Member

Custom Module with Site evaluator

Jump to solution

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 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Custom Module with Site evaluator

Jump to solution

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 solution in original post

2 Replies
angelborroy
Alfresco Employee

Re: Custom Module with Site evaluator

Jump to solution

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
isra_vass
Active Member

Re: Custom Module with Site evaluator

Jump to solution

Thank you so much Angel.