cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Aikau footer

streetturtle
Confirmed Champ
Confirmed Champ
I would like to change Alfresco footer. I already changed it in Surf pages - now it's time for Aikau page(s) (I'm on 5.0.c), like Search Results page.
I'm trying to override the template of the widget (templateString field). So far I created extension:


<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>


Created footer template and I want to inject it in AlfShareFooter object like this:

<b>MyFooter.js</b>

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


But it doesn't work… Smiley Sad
3 REPLIES 3

streetturtle
Confirmed Champ
Confirmed Champ
I've found out how to override template:


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;
        }
      });
    });


But with custom footer template comes custom css and i18n… So I wrote a <a href="http://pavelmakhov.com/2016/03/customize-alfresco-footer-aikau">post</a> about changing Aikau footer in Alfresco.


Hello,

I'm trying to change the footer of the advanced search page of Alfresco . I am following this tutorial: http://pavelmakhov.com/2016/02/customize-alfresco-footer-aikau. For this, I've created a share project using Maven in Eclipse.I've created the following files:

widget-extension.xml
my-footer.html
my-footer.css
MyFooter.properties
MyFooter.js

Faceted - search.get.js


But the change has no effect. I think I forgot changing any file or I've include a file in the wrong place. There is an attached print of the project in Eclipse. It is not displayed error message.

Can anyone help ?

Thank you

ddraper
World-Class Innovator
World-Class Innovator

The footer in the advanced search page is NOT the Aikau footer this is the reason why it's not working. That approach only applies to pages where the Aikau footer is used (which is "full" Aikau pages such as the search and search manager pages).