將新自訂部份新增至首頁
1. 為新部份新增自訂 html 範本。在 <WT_HOME>/codebase.war/delivery/app/views/homePageSections/customSection.html 中新增 customSection。
例如:
<!--This is a placeholder-->
<span>Custom Section</span>
2. 在 modules/app/customization.js 的 after 方法中,存取 homePageSectionsConfigProvider 以將新部份設定如下:
/**
* This function is called near the very end of main.js, after InService has
* initialized itself, and just before angular.bootstrap() is called.
*
* Use this function for config customizations.
*/
after:function () {
module.config(function (homePageSectionsConfigProvider) {
//custom section created in step 1
var customSection = {
templte: :app/views/homePageSections/customSection.html"
};
homePageSectionsConfigProvider.setSections)[customSection]);
}};
}
3. 透過執行下列指令重新建構用戶端加工品:<ANT_HOME>/bin/ant -f <WT_HOME>/codebase.war/delivery/minimize.xml