CGBlog(cmsms)减少每页的结果数

时间:2016-10-25 19:50:14

标签: cmsmadesimple

使用CGBlog摘要页面时,每页输出25个结果。是否有可能增加或减少这个?

此外,我不确定它是否默认输出25或者是否以某种方式设置在其他地方。

这是我的摘要页面代码。

<!-- Start CGBlog Display Template -->
{if isset($error)}{cgerror}{$error}{/cgerror}{/if}

{if $pagecount > 1}
  <p>
    {if $pagenumber > 1}
      <a href="{$firsturl}">{$mod->Lang('firstpage')}</a>&nbsp;
      <a href="{$prevurl}">{$mod->Lang('prevpage')}</a>&nbsp;
    {/if}
    {$mod->Lang('prompt_page')  }&nbsp;{$pagenumber}&nbsp;{$oftext}&nbsp;{$pagecount}
    {if $pagenumber < $pagecount}
      &nbsp;<a href="{$nexturl}">{$mod->Lang('nextpage')}</a>
      &nbsp;<a href="{$lasturl}">{$mod->Lang('lastpage')}</a>
    {/if}
  </p>
{/if}

{foreach from=$items item=entry}
<div class="CGBlogSummary">

{if $entry->postdate}
    <div class="CGBlogSummaryPostdate">
        <strong>{$entry->postdate|cms_date_format:"F j, Y"}</strong>
    </div>
{/if}

{if $entry->categories}
<div class="CGBlogSummaryCategory">
{strip}<strong>{$category_label}&nbsp;</strong>
 {foreach from=$entry->categories item='category'}
   {$category.name}&nbsp;
 {/foreach}
{/strip}
</div>

{/if}
<div class="CGBlogSummaryLink">
<!--<strong>Category:</strong> {$category.name}<br>-->
<strong><a href="{$entry->detail_url}" title="{$entry->title|escape:htmlall}">{$entry->title|escape}</a></strong>

</div>



<!--{if $entry->author}
    <div class="CGBlogSummaryAuthor">
        {$author_label} {$entry->author}
    </div>
{/if}-->

{if $entry->summary}
    <div class="CGBlogSummarySummary">
        {eval var=$entry->summary}
    </div>

{else if $entry->content}

    <div class="CGBlogSummaryContent">
        {eval var=$entry->content}
    </div>
{/if}

{if isset($entry->extra)}
    <div class="CGBlogSummaryExtra">
        {eval var=$entry->extra}
    {* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
    </div>
{/if}
<!--{if isset($entry->fields)}
  {foreach from=$entry->fields item='field'}
     <div class="CGBlogSummaryField">
        {if $field->type == 'file'}
          <img src="{$entry->file_location}/{$field->value}"/>
        {else}
          {$field->name}:&nbsp;{eval var=$field->value}
        {/if}
     </div>
  {/foreach}
{/if}-->

<br />
</div>
{/foreach}
<!-- End CGBlog Display Template -->

1 个答案:

答案 0 :(得分:1)

看看: 内容&gt; Calguys博客模块&gt;选项标签&gt;默认页面限制