最近の検索


最近の検索はありません

Arthur Badin's Avatar

Arthur Badin

参加日2025年1月28日

·

前回のアクティビティ2025年2月11日

フォロー中

0

フォロワー

0

合計アクティビティ

3

投票

0

サブスクリプション

1

アクティビティの概要

さんの最近のアクティビティ Arthur Badin

Arthur Badinさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk APIs

Hey Erica,
 

We're using Help Center .hbs templates for the footer.
 

Example:

←footer.hbs→

© 2024. All rights reserved.

 

I was wondering if there's a way to get the current year using the templating language. Right now, we have to update it manually every year.

I found the date helper, but I'm not sure how to use it to get the current year or can we format it to include only year.

One idea is to wrap the year in a and update it dynamically using JavaScript, but that might cause a flash when the script runs. Is that the best approach, or is there a better way?

Thanks!

コメントを表示 · 編集日時:2025年2月11日 · Arthur Badin

0

フォロワー

0

投票

0

コメント


Arthur Badinさんが投稿を作成しました:

投稿 Developer - Zendesk APIs

Any way to make current year in the footer dynamic? Ideally without using JavaScript. Something like this:

{{date "" format="YYYY"}}

投稿日時:2025年1月28日 · Arthur Badin

0

フォロワー

3

投票

2

コメント