Help - Search - Members - Calendar
Full Version: How to show categories and related articles
Movable Type Community Forum > Additional Resources > Tips and Tricks
pmozell
I'm not a developer but have decent html understanding. Terminology of all these mods and inserts has me baffled. Please make this easy!

How do I show a listing of all categories and the articles assigned to them, in a column either to the left or the right of the main article? How do I make the same column appear on the archive pages?

I want to use MT to display news only and have no interest in blogging or interactive features. Are there any pre-made templates to download that address this?
almuhajabah
The manual explains MT's template tags and provides code samples.

For instance, to list all your categories and under each of them the entries in that category, you can use code similar to the following:

CODE
<MTCategories>
 <a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a><br>
 <MTEntries>
 <$MTEntryTitle$> 
 </MTEntries>
 <br /><br />
</MTCategories>


See here
pmozell
OK, that works, but how do I get the entry listings to hyperlink to the articl?. With the code you suggested the text is not linked.

Thanks much
kadyellebee
Instead of using just the MTEntryTitle tag, you can put the link around it like this:
CODE
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a>

Check out the manual for more about these tags. smile.gif

Kristine
overkill
I need a specific list of links based on it's category regardless of the entry date? What I want to do is list of all posts in a specific category regardless of the entries date. Preferably into an unordered list.


So:

CODE
<div class="leftcontent">
<MTEntries category="Seminars">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br>
</MTEntries>
</div>


Any help would be most appreciated.
girlie
So..what is the question? How to make it an unordered list?

CODE
<ul>
<MTEntries category="Seminars">
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTEntries>
</ul>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.