質問
ヘルプセンターにページネーションを追加できますか?
回答
はい、ページネーションヘルパーを使用できます{{pagination}}
Guide Theme でカスタム コードの使用に慣れている場合は、ヘルプ センターにページネーションを追加します。ページネーションは利用可能で、デフォルトで以下に含まれています:
- ホームページ
- 記事ページ
- 投稿ページ
- リクエスト一覧ページ
- 検索結果ページ
- セクションページ
ページネーション ヘルパーは、要素 (記事、投稿など) の数がページのサイズ (1 ページあたり 30 要素) より多い場合にのみレンダリングされます。たとえば、ホームページでページネーション ヘルパーを使用している場合、カテゴリ数が 30 を超える場合にのみホームページに表示されます。
詳細については、開発者の記事を参照してください。ページネーションヘルパー。
翻訳に関する免責事項:この記事は、お客様の利便性のために自動翻訳ソフトウェアによって翻訳されたものです。Zendeskでは、翻訳の正確さを期すために相応の努力を払っておりますが、翻訳の正確性については保証いたしません。
翻訳された記事の内容の正確性に関して疑問が生じた場合は、正式版である英語の記事を参照してください。
5件のコメント
George Tian
Is there any variable of pagination helper? For example, {{#if pagination.has_next}} tells me if there is a next page or not? Or I must implement it with JS, instead of editing the hbs template.
0
Carlotta Bartoloni
Ciao, è possibile impostare un limite inferiore a 30 (es. 10) ?
0
Joshua Barnard
I figured out a way to limit the number of promoted articles.
It relies on the index of the array. I mostly want it as a safe guard against having too many promoted articles on the home page.
0
Joshua Barnard
I'm also interested in this. I want to set a limit of 6 promoted articles on the home page and use pagination to show the rest.
0
Miguel Romero
is it possible to paginate 10 items per page?
0
サインインしてコメントを残してください。