位於【個人網誌設定】左邊邊欄裡的「網誌最近活動管理
」。
這是可以在首頁秀出別人對於站台內文章的最新迴響,算是很基本的功能,所以這是第一個要加入的Plug-in

進入選項後,把這項Plug-in開啟。接著在跳到剛剛上述提過的「網誌模版編輯器」,選擇編輯你正套用的模版。進入自己的模版選項後,可能會依照不同的模版,要修改的檔案名稱可能不見得一樣,不過基本上是要修改header.template或是footer.template,也就是看你要把哪個檔案是控制你站台上的「邊欄」。困難的是,怎麼知道哪個是控制邊欄呢?你可以看邊欄裡是否有些譬如日曆(calendar),文章分類(catergory),近期文章(recently)的控制語法選項出現,如果是,那就對啦!

當然,在這上面你希望可以看到有最新迴響的項目欄(項目標題),這點功能,可以模仿其他項目的語法來寫即可,譬如我的Dabu模版如下:(這裡可能依照不同的模版有不同的寫法,但基本上大同小異)

{$locale->tr("recentcomments&quot";)"}

接著把以下的語法貼入在上述的語法(項目欄)之下就可以:

{if
$recentcomments->isEnabled()}
{assign
var=comments value=$recentcomments->getRecentComments()}
{foreach
from=$comments item=comment}
{assign
var=commentpostid value=$comment->getArticleId()}
{assign
var=commentpost value=$recentcomments->getArticle($commentpostid)}
{assign
var=commentdate value=$comment->getDateObject()}

  • postPermalink($commentpost)}#{$comment->getId()}" title="{$comment->getText()|truncate:100:">{$comment->getUsername()}@{$commentpost->getTopic()}
    ({$locale->formatDate($commentdate, "%m/%d&quot";)"})
  • {/foreach}
    {else}
    Warning:
    {$locale->tr("RecentComments&quot";)"} is required or enabled.
    {/if}

    Leave a comment

    I’m Quintin

    A clinical doctor trained in Taiwan before and a current physician in the US industry. This is my cozy corner of the internet, where I collect sweet home sweet home memories. I also share my personal comments on news, books, movies, and TV series. Has been blogging for long time and pick it up again in the US. Let’s blog!

    Recent posts

    Category

    Tags

    Alice Emily Immigration jolie Ladakh PGY Rowing WHO wordpress 人權 人道援助 保育 公益 國際志工 基層醫療 外交替代役 外籍勞工 女性 安寧療護 宜蘭 家醫 小兒科 政治 教育 新港 旅遊 環保 生命 精神醫療 結婚 經濟 網路 網路科技 老人醫學 老婆 聖多美普林西比 自由軟體 衛教 貓咪 醫療人權 醫療化 醫療商品化 長期照護 電影 預防醫學

    Archives

    Click to open archives