八月 03, 2006

[模版修改] 在文章內加入 編輯文章 管理迴響 的連結

有時要管理某一篇文章或者迴響。進入管理介面去找又有點麻煩!

感謝 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。


發佈者: 陳怡杰 老師 at 16:55│  點閱次數 (369)│ 修改文章管理迴響迴響 (2)部落格學習筆記
回應文章

1

老師救命ㄚ

阿杰老師:
我因為太久沒有去update我的網誌/feifei的花花世界/g183
我居然連帳號密碼全忘了
進不去哩>

Posted by feifei詹馡馨 at 03/08/2006, 17:43

2

Re:[模版修改] 在文章內加入 編輯文章 管理迴響 的連結

;-) 成功~謝謝阿杰老師! :D

Posted by Yvonne at 07/08/2006, 19:57
(必要)
authimage