MTRelatedEntriesByKeyword: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (5個修訂) |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Work well at MT 2.661 | Work well at MT 2.661 | ||
* download the MT plugin from [http://www.rayners.org/2002/12/mtrelatedentries_bykeyword.php David Raynes: MTRelatedEntries ByKeyword] | == installation == | ||
* download the MT plugin from [http://www.rayners.org/2002/12/mtrelatedentries_bykeyword.php David Raynes: MTRelatedEntries ByKeyword] 2002-12-17 | |||
* upload the relatedkeyword.pl to {MT}/plugins/ | * upload the relatedkeyword.pl to {MT}/plugins/ | ||
* | * chmod relatedkeyword.pl to 755 | ||
== modify the MT template == | |||
* modify the template of "Individual_Entry_Archive", reference: [http://jedi.org/blog/templates.html 現用模版清單 | Jedi's BLOG | Jedi.org] | * modify the template of "Individual_Entry_Archive", reference: [http://jedi.org/blog/templates.html 現用模版清單 | Jedi's BLOG | Jedi.org] | ||
: the | : the following is my modification ( insert them before <MTEntryIfAllowComments> ) | ||
<pre> | <pre> | ||
<div class="comments-head">相關文章</div> | <div class="comments-head">相關文章</div> | ||
| Line 20: | Line 23: | ||
: they will show the latest related 7 articles | : they will show the latest related 7 articles | ||
* Do not forget to specify the keywords of each articles ( | * Do not forget to specify the keywords of each articles (separate by space. I recommend use 'long_words' instead of 'long words') | ||
[[Category:Blog]] [[Category:Tag]] | [[Category:Blog]] [[Category:Tag]] | ||
Latest revision as of 14:36, 21 June 2009
Work well at MT 2.661
installation[edit]
- download the MT plugin from David Raynes: MTRelatedEntries ByKeyword 2002-12-17
- upload the relatedkeyword.pl to {MT}/plugins/
- chmod relatedkeyword.pl to 755
modify the MT template[edit]
- modify the template of "Individual_Entry_Archive", reference: 現用模版清單 | Jedi's BLOG | Jedi.org
- the following is my modification ( insert them before <MTEntryIfAllowComments> )
<div class="comments-head">相關文章</div>
<div class="blogbody">
<ul>
<MTRelatedEntriesByKeyword>
<MTEntries lastn="7"><li><a href="<$MTEntryPermalink$>" title="<$MTEntryTitle$> (with keywords: <$MTEntryKeywords$>)"><$MTEntryTitle$></a></li></MTEntries>
</MTRelatedEntriesByKeyword>
</ul>
</div>
- they will show the latest related 7 articles
- Do not forget to specify the keywords of each articles (separate by space. I recommend use 'long_words' instead of 'long words')