Help - Search - Members - Calendar
Full Version: MTEntryTitle on every entry
Movable Type Community Forum > Additional Resources > Tips and Tricks
likorish
After some trial and error, I figured it out:

CODE
<span class="title"><$MTEntryTitle$> </span>
<MTDateHeader>
<span class="date"><a href="<$MTEntryLink$>#<$MTEntryID pad="0"$>">::</a> <$MTEntryDate format="%A, %e %B %Y" upper_case="1"$> </span>
</MTDateHeader>
likorish
I'd like to have the title of every entry appear before the body of the entry on my journal. The way I have MT configured at present only puts the title at the top of the most recent entry for that day. If I post more than one entry per day, only the most recent shows the title.

Here's how I have the MT code in my template:

CODE
<MTDateHeader>
<p> <span class="title"><$MTEntryTitle$> </span>
<span class="date"><a href="<$MTEntryLink$>#<$MTEntryID pad="0"$>">::</a> <$MTEntryDate format="%A, %e %B %Y" upper_case="1"$> </span></p>
</MTDateHeader>


Have I overlooked something?  Thanks for any help!
girlie
I'm no MT expert, but I believe the problem is that you are wrapping your code in the container tag - according to the documentation, whatever is within this tag appears only if the entry marks a new day in the list of entries.

So, anything within that container tag is only going to appear once per day, not per entry. You need to move the tag (and any others that you want to appear with each entry) outside of the tag.
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.