Help - Search - Members - Calendar
Full Version: Latest Entry Problems
Movable Type Community Forum > Using Movable Type > Entries and Archives
nobodynoes
My client wants to display the latest entry in full on the front page, but all other entries to only display the summary.
Is this possible?
shenews
Sure.

CODE
<MTEntries lastn="1">
    <$MTInclude module="Entry Detail"$>
</MTEntries>

<MTEntries offset="1">
    <$MTInclude module="Entry Summary"$>
</MTEntries>


(or whatever you're calling the modules of your short and long versions of entries; I have them in several sizes, so I may not be using standard naming conventions any more)
Su-
Assuming you're using something later than v3:
CODE
<MTEntries lastn="10">
<MTIf name="__first__">
    [code for the full-content entry here]
    <MTElse>
        [code for the entry summaries here]
    </MTElse>
</MTIf>
</MTEntries>


That "10" can be whatever you want. I just needed a number.
nobodynoes
QUOTE (shenews @ Aug 21 2008, 10:59 AM) *
Sure.

CODE
<MTEntries lastn="1">
    <$MTInclude module="Entry Detail"$>
</MTEntries>

<MTEntries offset="1">
    <$MTInclude module="Entry Summary"$>
</MTEntries>


(or whatever you're calling the modules of your short and long versions of entries; I have them in several sizes, so I may not be using standard naming conventions any more)



Thanks, works
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-2008 Invision Power Services, Inc.