Alfresco 自定义 aikau 页脚

Alfresco custom aikau footer

我想自定义 Alfresco aikau 页脚。一开始我想在 AlfShareFooter 中注入自定义 html-template。到目前为止,我创建了一个扩展:

<extension>
  <modules>
    <module>
      <id>MyCmpny widgets</id>
      <version>1.0</version>
      <auto-deploy>true</auto-deploy>
      <configurations>
        <config evaluator="string-compare" condition="WebFramework" replace="false">
          <web-framework>
            <dojo-pages>
              <packages>
                <package name="mycmpny" location="js/mycmpny"/>
              </packages>
            </dojo-pages>
          </web-framework>
        </config>
      </configurations>
    </module>
  </modules>
</extension>

Html 页脚模板,现在我正在尝试覆盖 AlfShareFooter 对象的 templateString

define(["dojo/_base/declare",
        "alfresco/footer/AlfShareFooter'",
        "dojo/text!./templates/ep-footer.html"],
       function (declare, AlfShareFooter, template) {
         return declare([AlfShareFooter], {
           templateString: template
         })
       });

但是没用。我对 Dojo 不熟悉,我认为问题出在语法上...

我找到了如何覆盖模板:

define(["dojo/_base/declare",
    "dojo/text!./templates/my-footer.html",
    "alfresco/footer/AlfShareFooter"],
    function (declare, template, AlfShareFooter) {
      return declare([AlfShareFooter],{
        postMixInProperties: function my_footer_AlfShareFooter__postMixInProperties(){
          this.inherited(arguments);
          this.templateString = template;
        }
      });
    });

但是随着 g̶r̶e̶a̶t̶ 自定义页脚模板出现了 g̶r̶e̶a̶t̶ 自定义 css 和 i18n... 所以我写了一个 post 关于在 Alfresco 中更改 Aikau 页脚。