Help - Search - Members - Calendar
Full Version: last extended entry
Movable Type Community Forum > Additional Resources > Tips and Tricks
plot
is it possible to get the last extended entry?
maddy
What do you mean, exactly?

Do you want the code to display the extended entry text of the last entry? Or to find the last entry that had an extended entry text? huh.gif
plot
QUOTE (maddy @ Sep 5 2003, 04:05 AM)
What do you mean, exactly?

Do you want the code to display the extended entry text of the last entry? Or to find the last entry that had an extended entry text? huh.gif

didn't mean to be confusing. i want to find the last post that had an extended entry and post it's text.
plot
anybody?
cathy
You could try MTEntryList. Run through the entries and exclude them if they don't have an extended entry, then run MTEntryList again with lastn="1".

This post may help explain what I mean.

Cathy
Appreciation Links
plot
QUOTE (cathy @ Sep 7 2003, 08:41 PM)
You could try MTEntryList. Run through the entries and exclude them if they don't have an extended entry, then run MTEntryList again with lastn="1".

This post may help explain what I mean.

thanks, but that is the most confusing plugin i've ever seen. i read over the documentation twice and still had no idea what it did. the thread didn't really clear things up either. would you mind writing some sample code so i could see what needs to be done?
cathy
CODE
<MTEntryList>
<MTEntryListEntries>
<MTEntryIfExtended><$MTEntryListInclude$></MTEntryIfExtended>
</MTEntryListEntries>

<MTEntryListEntries lastn="1">
<$MTEntryBody>
</MTEntryListEntries>
</MTEntryList>


I tested this in an index template and it works for me. Let me know if it doesn't do what you want. Depending on your context it may or may not work for you.

Cathy
plot
i had to modify it a bit, but it works.

thank you.
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.