MTRelatedEntriesByKeyword: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Line 2: Line 2:


== installation ==
== installation ==
* download the MT plugin from [http://www.rayners.org/2002/12/mtrelatedentries_bykeyword.php David Raynes: MTRelatedEntries ByKeyword]
* 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
* chmod relatedkeyword.pl to 755

Revision as of 18:22, 24 September 2005

Work well at MT 2.661

installation

modify the MT template

the follwing 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 (seperate by space. I recommend use 'long_words' instaed of 'long words')