<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Module with Site evaluator in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89252#M26744</link>
    <description>&lt;P&gt;The condition is evaluated as a regular expression:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/extensibility/SlingshotSiteModuleEvaluator.java#L158" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/extensibility/SlingshotSiteModuleEvaluator.java#L158&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So you need to add somethig like:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;evaluator type="site.module.evaluator"&amp;gt;
  &amp;lt;params&amp;gt;
    &amp;lt;sites&amp;gt;SiteA|SiteB|SiteC&amp;lt;/sites&amp;gt;
  &amp;lt;/params&amp;gt;
&amp;lt;/evaluator&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 27 Feb 2020 11:43:55 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2020-02-27T11:43:55Z</dc:date>
    <item>
      <title>Custom Module with Site evaluator</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89251#M26743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The evaluator&amp;nbsp; I am using looks like:&lt;/P&gt;&lt;P&gt;&amp;lt;evaluator type="site.module.evaluator"&amp;gt;&lt;BR /&gt;&amp;lt;params&amp;gt;&lt;BR /&gt;&amp;lt;sites&amp;gt;SiteA,SiteB,SiteC&amp;lt;/sites&amp;gt;&lt;BR /&gt;&amp;lt;/params&amp;gt;&lt;BR /&gt;&amp;lt;/evaluator&amp;gt;&lt;/P&gt;&lt;P&gt;But this way does not work. However, if I just put one site, it works.&lt;/P&gt;&lt;P&gt;Does anyone know how to pass serveral Sites to the evaluator?&lt;/P&gt;&lt;P&gt;I spent some time looking online but could not find any answer&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89251#M26743</guid>
      <dc:creator>isra_vass</dc:creator>
      <dc:date>2020-02-27T11:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Module with Site evaluator</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89252#M26744</link>
      <description>&lt;P&gt;The condition is evaluated as a regular expression:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/extensibility/SlingshotSiteModuleEvaluator.java#L158" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/extensibility/SlingshotSiteModuleEvaluator.java#L158&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So you need to add somethig like:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;evaluator type="site.module.evaluator"&amp;gt;
  &amp;lt;params&amp;gt;
    &amp;lt;sites&amp;gt;SiteA|SiteB|SiteC&amp;lt;/sites&amp;gt;
  &amp;lt;/params&amp;gt;
&amp;lt;/evaluator&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:43:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89252#M26744</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-02-27T11:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Module with Site evaluator</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89253#M26745</link>
      <description>&lt;P&gt;Thank you so much Angel.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:49:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-module-with-site-evaluator/m-p/89253#M26745</guid>
      <dc:creator>isra_vass</dc:creator>
      <dc:date>2020-02-27T11:49:16Z</dc:date>
    </item>
  </channel>
</rss>

