Having looked at basic theming, creating dashlets and Document Library customization, this session will dig deeper into Share extensions. Topics will include: overriding components, changing page layouts, adding new pages and advanced techniques with dashlets. It is assumed you have a basic understanding of Surf concepts as well as a working knowledge of JavaScript and Freemarker. Familiarity with YUI 2.x and CSS will aid understanding during this session.
28. Override the My Task lists cell renderer 15 …and place the new method implementation in: ${TOMCAT_HOME}/shared/lib/acme.jar!/META-INF/acme/components/workflow/task-list.js // Override "icon" column in My Tasks list Alfresco.component.TaskList.prototype.renderCellTaskInfo= function Acme_TL_renderCellTaskInfo(elCell, oRecord, oColumn, oData) { elCell.innerHTML = <custom code goes here>; };
67. I.e “page” overrides “template” but also make “uri” override “template” and “page”. This makes it possible to have “site specific” components on pages.
68.
69. Learn More 36 wiki.alfresco.com forums.alfresco.com twitter: @AlfrescoECM
70. 37 Shape & Color Pallette Normal Text Normal Text Normal Text
No matter what version of Share you use: never modify source files.Instead you copy the originals and place them in the web-extension folder to be overridden! This is true for all versions!What happens is that Share always looks in web-extension for what it wants before it looks in the webapps folder.New functionality is also placed in shared/classes but just above the web-extenstion folder.Client side resources needs to be placed in a new .war file and all templates that references them needs to be overriden in the web-extension folder.