The purpose of this Power Pages template is to be able to easily implement the WET CDTS layer of the Canada.ca or intranet.canada.ca themes into a Power Pages solution.
This will ensure that a Power Pages App uses this template will be accessible, usable, interoperable, mobile friendly and multilingual.
https://docs.microsoft.com/en-us/power-apps/developer/data-platform/powerapps-cli
pac auth create --url https://MYPOWERPAGE.crm3.dynamics.com
pac paportal upload --path "C:\path\to\local\repo\Power-Pages-WET-Template"
If your site uses the Enhanced data model (Enhanced data model | Microsoft Learn):
pac powerpages upload --path <path> --modelVersion 2
If Enhanced data model, go to Power Pages Management > Websites > Supported Languages
If Standard data model, go to Portal Management > Portal Languages
- English. Change Language Code to 'en'
- French. Change Language Code to 'fr'
Websites -> Your website -> Change 'Header Template' to 'WET4 - Header' and 'Footer Template' to 'WET4 - Footer'
⚠️ fail to set up the languages and their codes will result the header now showing. You may have duplicate English and French records. Please delete the unused ones (usually the 2nd ones in your list).
In the Power Pages Management app, change the 'Website' for the components below from TC-WET-CDTS - TC-WET-CDTS
to you Power Page.
- DateTime/DateFormat
- WET4 - IsApplication
- WET4 - IsExternal
- WET4 - Version
- WET4 - AppName
- WET4 - breadcrumbs
- WET4 - menuLinks. By default, it's using the 'Primary Navigation' Web Link Sets.
- WET4 - prepreFooter. App version and modified date on bottom of the page.
- Head/Bottom. Please select the right Website language.
- WET4 - Header
- WET4 - Footer
- WET4 - Full Page without Child Links
- WET4 - Full Page without Child Links
Web Pages > Select page > Page Template
Check if 'English' and 'French' is setup and their code is 'en' and 'fr'.
Content Snippets -> Head/Bottom
Content Snippets -> Head/Bottom -> Set isApplication to false. Do not forget to change the French one as well.
Content Snippets -> menuLinks. It's in json format.