Publications というモジュールを含むテンプレートをダウンロードしました。ニュース ページが読み込まれると、次の .tpl ファイルが呼び出されます。
{title}{$category.title}{/title}
<div class="newsPage">
<h1>Latest News</h1>
{foreach from=$articles item=entry name=articles}
{if $smarty.foreach.articles.first}<dl><br />{/if}
<dt><a href="{$GLOBALS.site_url}/publications/{$category.id}/{$entry.id}/{$entry.title|replace:' ':'-'|escape:"urlpathinfo"}.html" class="title"></dt>
<dd>{$entry.description}</dd>
{if $smarty.foreach.articles.last}</dl></a>{/if}
{foreachelse}
[[There are no articles available at this time]]
{/foreach}
</div>
そして、問題があります。1000 件の記事がある場合、すべての記事が読み込まれ、ページは作成されません。
最初に最新の 4 つの記事のみが表示される「さらに表示」ボタンを作成しようとしています。「さらに表示」ボタンをクリックすると、次の 4 つの記事が表示されます。
それは可能ですか?これを使って動的なニュース セクションを作成する新しい方法を教えてくれる人はいますか?