How to add My Account and Contact Us links to a letter footer
- Product: Alma
Question
How do I add "My Account" and/or "Contact Us" to the letter footer?
Answer
Perform the following steps:
- Configuration > General > Letters Configuration
- Locate letter to edit and click Row Actions > Edit
- Click the Template tab
- Scroll to the bottom of the xsl
- Insert a line by placing the cursor at the end of line with the text of:
<xsl:call-template name="lastFooter" />
- To add "My Account" insert the following text:
<xsl:call-template name="myAccount" />
- To add "Contact Us" insert the following text:
<xsl:call-template name="contactUs" />
- Preview the letter to verify that the footer appears as desired
- Click Save
End result: xsl for "My Account" and "Contact us" will appear between <xsl:call-template name="lastFooter" /> and </body>
Resulting footer section:
<!-- footer.xsl --> <xsl:call-template name="lastFooter" /> <xsl:call-template name="myAccount" /> <xsl:call-template name="contactUs" /> </body> </html> </xsl:template> </xsl:stylesheet>
- Article last edited: 03-May-2022