Pied de page personnalisé
Lorsque vous utilisez le modèle d'application, vous avez la possibilité d'ajouter un pied de page personnalisé qui contiendra les liens de votre choix.
Mise en œuvre
La personnalisation du pied de page se fait via le paramètre footerSections
dans la section appFooter de votre page.
href
: l'url du lientext
: le texte du lien qui s'affichenewWindow
: Facultatif: défini sur true si vous souhaitez que le lien s'ouvre dans une nouvelle fenêtre
defFooter.outerHTML = wet.builder.appFooter({ ... "footerSections": [{ "href": "#", "text": "Lien de pied de page du portail 1" }, { "href": "#", "text": "Lien de pied de page du portail 2" }, { "href": "#", "text": "Lien de pied de page du portail 3" }] ... });
To modify the contact link, the terms link and the privacy link at the bottom of the page, simply add the following code snippet in the appFooter section for your page.
Contact Link
defFooter.outerHTML = wet.builder.appFooter({ ... "contactLink": [{ "href": "https://www.canada.ca/en/contact.html", "newWindow": true }] ... });
Terms Link
defFooter.outerHTML = wet.builder.appFooter({ ... "termsLink": [{ "href": "https://www.canada.ca/en/transparency/terms.html", "newWindow": true }] ... });
Privacy Link
defFooter.outerHTML = wet.builder.footer({ ... "privacyLink": [{ "href": "https://www.canada.ca/en/transparency/privacy.html", "newWindow": true }] ... });