我想定制Alfresco页脚。首先,我想在AlfShareFooter中注入自定义html模板。到目前为止,我创建了一个扩展:
<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对象的AlfShareFooter:
define(["dojo/_base/declare",
"alfresco/footer/AlfShareFooter'",
"dojo/text!./templates/ep-footer.html"],
function (declare, AlfShareFooter, template) {
return declare([AlfShareFooter], {
templateString: template
})
});但不起作用。我不熟悉Dojo,我认为问题在于语法.
发布于 2016-03-01 20:45:53
我已经了解了如何覆盖模板:
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̶̶t̶自定义css和.所以我写了一个关于在阿尔弗雷科改变Aikau页脚的帖子。
https://stackoverflow.com/questions/35701866
复制相似问题