有時要管理某一篇文章或者迴響。進入管理介面去找又有點麻煩!
感謝 LifeType 名人 - 阿駕 提供了下面的解決方法。
文章出處:
http://twntwn.info/blog/ajer001/archives/461
使用模版編輯器修改
post.template 或 postandcomment.template
可以找到類似這一行程式 (顯示文章日期)
{$locale->formatDate($postDate,"%H:%M")}
後加入
在你想要放上連結的位置,加上這段連結:
<a xhref="{$url->getUrl("/admin.php")}?op=blogSelect&blogId={$blog->getId()}&action=editPost&postId={$post->getId()}" target="_blank">修改文章</a>
P.S. 記得把 xhref 改成 href。
這樣就可以了。
不過需要先登入管理面板。
最近覺得有時候要管理迴響不太方便,順便寫了一個管理迴響的連結:
<a xhref="{$url->getUrl("/admin.php")}?op=blogSelect&blogId={$blog->getId()}&action=editComments&articleId={$post->getId()}" target="_blank">管理迴響</a>
P.S. 記得把 xhref 改成 href。