-
Notifications
You must be signed in to change notification settings - Fork 50
Customizations
The customized installation makes the assumption you wish to change the default variables (site name, list names, labels, buttons text, logo etc.) with the CMP Solution Template. Customizing the installation takes it outside of configurations we have tested against but allows you to modify any aspect of the template.
Please note that if you customize the solution according to your organization needs, there are chances that you might face challenges while upgrading to new versions with the future releases.
- Install Visual Studio Code
- Clone the app repository locally.
Below are the high level steps to get you started on customizing the template.
-
Open
siteconfig.json
undersrc\webparts\clbHome\config
-
Modify the 'sitename' property as per your requirement.
-
Open
siteconfig.json
undersrc\webparts\clbHome\config
-
To modify a list name change the "listName" property of the specific list.
-
To modify a field name change the "name" property under the "columns" node.
-
Modify the code in the component which is linked to the list/field and test to make sure the functionality is not breaking.
-
Open
en-us.js
undersrc\webparts\clbHome\loc
-
The text for all buttons, labels,titles, messages are listed in this file grouped by components.
-
Find and modify the text as per needs.
-
Open
Sidebar.tsx
undersrc\webparts\clbHome\components
. -
Find the "Become a champion" button code.
-
Modify the disabled property to "disabled={true}"
-
To redirect the button to a different component/page modify the "onClick" property of the button as needed
-
Navigate to
teams
folder under the project. -
Replace the below two images with new image files. Make sure the new images are also in png format. 6df47bd5-d84a-41ab-8c4a-9352076e8b6c_color.png 6df47bd5-d84a-41ab-8c4a-9352076e8b6c_outline.png
-
Delete the "TeamsSPFxApp.zip" folder and create a new zip folder with the images and the manifest file in the same location with the same name.
-
Generate a new package file and follow the deployment instructions in the deployment guide.
-
Follow the steps from
Standard Installation
section in the Deployment Guide. If you are having classic App Catalog skip the step 12 and if you are having modern App Catalog skip the step 4 underModern App Catalog
section. -
Instead of syncing the app to Teams through App Catalog follow the below steps.
-
Download the folder
teams
from the app repository locally. -
Open
teams
folder locally and open themanifest.json
file and make the below changes.- To change the App title as it appears in App Store, modify the below properties in the manifest file
- name
- description
- To change the App title as it appears in App Store, modify the below properties in the manifest file
NOTE: Make sure the App Title doesn't exceed 30 characters.
![Customization](https://github.com/OfficeDev/microsoft-teams-apps-champion-management/blob/main/Images/CustomizeAppTitle1.png)
- To change the App title as it appears on the tab, modify the below property in the manifest file
- staticTabs
- staticTabs
![Customization](https://github.com/OfficeDev/microsoft-teams-apps-champion-management/blob/main/Images/CustomizeAppTitle2.png)
-
Delete the
TeamsSPFxApp.zip
folder and create a new zip folder with the 2 images and the manifest file in the same location with exactly the same nameTeamsSPFxApp.zip
. -
Navigate to
Teams Admin Center
and upload theTeamsSPFxApp.zip
zip file. The title changes to the app will take effect in Teams as shown below.
Below customizations can be done in the Member list with no code changes required in the solution.
- Modify the display name for the below columns
- Region
- Country
- Group
Note: Change column names only when your SharePoint site is displayed in English (i.e. The language setting for the user in office 365 profile (Delve) should be English). This is a limitation based on how the column renaming works in non-English languages.
- Admin can Show/Hide the below columns from "Manage Config Settings" under Admin Tasks.
- Region
- Country
- Group
For eg: If any of these column is no longer needed for the app, it can configured in the above screen and it will be hidden throughout the app screens where it was used.
- Add/Modify the choices for the below columns
- Region
- Country
- Group
- Focus Area
Important Note:
- Do not delete or change the type of any column in the "Member List".
- Do not make any customization other than the above listed items, unless you are customizing the code. Otherwise it will break the functionality of the app.