AnsweredAssumed Answered

Site evaluator for module extensions

Question asked by douglascrp Moderator on Jul 10, 2015
Latest reply on Jul 10, 2015 by douglascrp

Is there any change I can make "site.module.evaluator" work for datalist datagrid configuration?

I know it's possible to use module extensions to change the document library configuration dinamically, but the same idea doesn't work for datalist configuration.

What I tried to do so far is something like

<code language="xml"><module>
  <id>Configuracao Filtro Historico Afastamentos SiteX</id>
  <evaluator type="site.module.evaluator">
          <config evaluator="model-type" condition="xxx:historicoAfastamentoList" replace="true">
            <show id="xxx:estabelecimento" />
            <show id="xxx:localAtendimento" />
            <show id="xxx:nomeCliente" />
            template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
        <form id="datagrid">
            <show id="xxx:estabelecimento" />
            <show id="xxx:localAtendimento" />
            <show id="xxx:nomeCliente" />

The configuration for other sites different from SiteX does not include the attribute xxx:nomeCliente

So my requirement is to show the attribute xxx:nomeCliente only for siteX.

When I apply this module, it seems the evaluator completely ignores the site name.