AnsweredAssumed Answered

Site evaluator for module extensions

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

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>
  <auto-deploy>true</auto-deploy>
  <evaluator type="site.module.evaluator">
      <params>
          <sites>siteX</sites>
          <sitePresets>.*</sitePresets>
      </params>
  </evaluator>
      <configurations>
          <config evaluator="model-type" condition="xxx:historicoAfastamentoList" replace="true">
              <forms>
        <form>
          <field-visibility>
            <show id="xxx:estabelecimento" />
            <show id="xxx:localAtendimento" />
            <show id="xxx:nomeCliente" />
          </field-visibility>
          <create-form
            template="/org/alfresco/components/data-lists/forms/dataitem.ftl" />
        </form>
        <form id="datagrid">
          <field-visibility>
            <show id="xxx:estabelecimento" />
            <show id="xxx:localAtendimento" />
            <show id="xxx:nomeCliente" />
          </field-visibility>
        </form>
      </forms>
    </config>
  </configurations>
</module></code>

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.

Outcomes