Hi Everyone,
I want to create a template that shows view a set of categorized entries that is tagged with the same word.
This is the code below I have come up with so far. When I try to add a particular category, it doesn't work.
Any help would be great.
Thanks,
V
<!-- Beginning Related Entries for Press Release -->
<a name="top"></a>
<mt:Tags glue="<br />"><a name="<$mt:TagName$>"><h2><$mt:TagName$></h2></a>
<mt:Entries unique="1">
<p><a href="<$mt:EntryPermaLink$>"><$mt:EntryTitle$></a></p>
</mt:Entries>
</mt:Tags>
<p><strong><a href="#top">Return to Top</a></strong></p>
</mt:Tags>
<mt:Ignore>
<mt:Tags glue="<h3>">
View Other Press Releases On <$mt:TagName$>
<mt:Entries category="Press Releases" unique="1">
<p><a href="<$mt:EntryPermaLink$>"><$mt:EntryTitle$></a></p>
</mt:Entries>
</mt:Tags>
</mt:Ignore>
<mt:Ignore>
<mt:EntryTags glue=" OR "><mt:TagName></mt:EntryTags></h3>
<mt:Entries tags="$tags" category="Press Releases" unique="1">
</mt:Entries>
</mt:Ignore>
<!-- End Related Entries for Press Releases -->
Reported on Movable Type 4.2
You have an extra closing Tags tag there which would cause some syntax errors.
You also need to take out the "unique" attribute from the Entries tag, as well as add very high limit attributes to both the Tags and Entries loops in order to catch all of your entries as your site grows bigger.
Lastly, you're going to definitely want to make this index get published via the publish queue, not statically.