Adding a New Section
1. Add a new template for the new section under \ptc\InService\InS_SW\SW\Applications\Windchill.ear\codebase.war\delivery\app\views\homePageSections directory
For example: app\views\homePageSections\whatsNew.html
<!--This is a placeholder-->
<span data-bo-text="'WHAT'S_NEW' | translate"></span>
2. Add the new section to the default sections in \ptc\InService\InS_SW\SW\Applications\Windchill.ear\codebase.war\delivery\app\views\homePageSections\homePageSectionsDirective.js and add it to the sections array in the preferred order.
config: function () {
this.defaultSections = {
whatsNew: {
template: "app/views/homePageSections/whatsNew/whatsNew.html"
},
newSection: {
template: "app/views/homePageSections/newSection.html"
}
};
var sidebarSections = [this.defaultSections.whatsNew,
this.defaultSections.newSection];
Before:
After:
| “What’s new” and “New Section” are placeholders for the actual content in this example. |