AnsweredAssumed Answered

How to replace the faceted-search form's footer for a custom one?

Question asked by douglascrp Moderator on Jul 12, 2015
Latest reply on May 11, 2018 by hiten.rastogi
I'm trying to customize the faceted-search form and I was already able to replace the page title.
My next requirement is to replace the footer for a custom one, with a custom logo, and without any of the licence text information.

I tried to create a custom widget and replace it as follow:

var pageTitleWidget = widgetUtils.findObject(model.jsonModel.widgets, "id", "HEADER_TITLE");
var footerWidget = widgetUtils.findObject(model.jsonModel.widgets, "id", "ALF_STICKY_FOOTER");

if(pageTitleWidget != null){
    pageTitleWidget.config.browserTitlePrefix = msg.get("faceted.search.page.custom.title.prefix");
}

if(footerWidget != null){
   footerWidget.config.widgetsForFooter = [
       {
           name: "custom/widgets/footer/CustomFooter",
           config: {
              semanticWrapper: "footer",
              logoImageSrc: "custom-logo.png"
           }
        }
     ]
}


Is it possible?
Can someone please provide some sample code on this?

Thank you in advance.

Outcomes