[MovableType] MT4.xでカテゴリー関連記事表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MTSetVarBlock name="catList"><MTEntryCategories glue=" OR "><$MTCategoryLabel$></MTEntryCategories></MTSetVarBlock> | |
<MTSetVarBlock name="baseTitle"><$MTEntryTitle$></MTSetVarBlock> | |
<h2>関連記事</h2> | |
<ul> | |
<MTEntries lastn="6" categories="$catList"> | |
<MTSetVarBlock name="relatedTitle"><$MTEntryTitle$></MTSetVarBlock> | |
<MTIf name="relatedTitle" ne="$baseTitle"> | |
<li><a href="<$MTEntryLink$>"><$MTEntryTitle$></a></li> | |
</MTIf> | |
</MTEntries> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment