如何在5.1.1中的分面搜索屏幕中实现自定义页脚

时间:2016-11-06 03:36:30

标签: alfresco-share

我们需要自定义页脚以使其在5.1.1的分层搜索屏幕中保持构建版本;我已按照以下链接。

http://pavelmakhov.com/2016/02/customize-alfresco-footer-aikau

现在实施后,整个页脚都不可见。调用faceted-search.get.js&自定义widget.js;我认为自定义html文件存在一些问题。

定制footer.html

<div class="alfresco-footer-AlfShareFooter" data-dojo-attach-point="footerParentNode">
   <span class="copyright" data-dojo-attach-point="footerContainerNode">
      <a href="#" onclick="Alfresco.module.getAboutShareInstance().show(); return false;">
         <img src="${logoImageSrc}" alt="${altText}" border="0"/>
      </a>
       <span>Buildversion:${buildVersion}</span>
      <span class="licenseHolder" data-dojo-attach-point="licenseHolderNode">${licensedToLabel} ${licenseLabel}<br></span>
      <span>${copyrightLabel}</span>
   </span>
</div>

刻面-search.get.js

var footer = widgetUtils.findObject(model.jsonModel, "id", "ALF_STICKY_FOOTER");

logger.log("footer:"+footer);

footer.config.widgetsForFooter = [{
  name: "blogs/footer/search-footer", config: {
    semanticWrapper: "footer",
    currentYear: new Date().getFullYear(),
    buildVersion: "2.0.0",
    buildDate: "4th Nov 2016"
  }
}];

enter image description here

0 个答案:

没有答案