Startpage >> Plog >> TempShowAll

Temp Show All

<< 在模版中插入影像 | Plog.HomePage | pLog 迴響模版的迴響編號 >>


主題列示

pLog0.3.2 之後的版本才有提供( $showAll 的變數),當分類或是逐月彙整中的文章,超過 站台設定中顯示的文章數目時,為只呈現文章標題。

設定方法為:

  1. 修改 main.template
  2. 尋找以下文字:
    {foreach from=$posts item=post}
    {include file="blueish/post.template"}
    {/foreach}
  3. 將這一段取代為:
    {foreach from=$posts item=post}
    {if $showAll}
    <a href="{$url->postPermalink($post)}">{$post->getTopic()}</a><br />
    {else}
    {include file="blueish/post.template"}
    {/if}
    {/foreach}

如此一來即可依據設定做不同方式的呈現


<< 在模版中插入影像 | Plog.HomePage | pLog 迴響模版的迴響編號 >>

頁面最後更新於 2005 年 01 月 11 日,10:35 PM