December 15, 2003

Q: How can I get the category(ies) to display with my entry?

Posted at 07:52 PM Gems, Notebook, Too Done List

How'd I get the "Notebook" category link to display on the same line as the entry title?

This one's really easy. First, take a look @ The MT Wiki MTCategory page. You'll get the basics there. And while you're there, bookmark the MT Wiki site -- very useful.

Armed with that little tidbit of knowledge, all I did was find MTEntryTitle tag in my index templates. They looked like

            <h3 class="title"><$MTEntryTitle$></h3>
I wrapped them in two-cell tables, like this.
<table width="100% border="0" cellpadding="0" cellspacing="0">
<tr valign=top><td>
    <h3 class="title"><$MTEntryTitle$></h3>
</td><td align=right>
    <MTEntryCategories glue=", ">
        <a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a>
    </MTEntryCategories>
</td></tr></table> 

The title is in the left hand cell and the piece of code from MT Wiki is in the right-hand cell. I set that cell to right justify.

No sweat!

p.

Presently listening to:
Letter to Hiro - The Vapours - New Clear Days - (06:23)



 
Posted by Patrick at December 15, 2003 07:52 PM