Current Year in Footer of Help Center Page
On a Help Center page footer (https://developer.zendesk.com/apps/docs/help-center-templates/footer_page), I would love to use the date helper (https://developer.zendesk.com/apps/docs/help-center-templates/helpers#date-helper) to drop in the current year for the copyright so we never have to touch it again.
Unfortunately, the date helper does not appear to support a "year" format and there does not appear to be an available "now" or "currentdate" variable that could be used to get the current date/time.
Is it possible to do what I'm asking using only helpers and not JavaScript? Currently, I am using the following JavaScript to bridge the gap, but obviously it won't help on any browser with JS disabled or unavailable.
©
<script>document.write(new Date().getFullYear());</script>
<noscript>2020</noscript>
Vous devez vous connecter pour laisser un commentaire.
0 Commentaires