Help - Search - Members - Calendar
Full Version: Segregating Entries
Movable Type Community Forum > Using Movable Type > Entries and Archives
2470144
In the design of a Main Index presentation, I would like to have a running list of the most recent 5 entry excerpts in the content area (very simple and therefore easily accomplished); and,

(Question here ->): have one entry 'segregated' from the others.

This segreagted entry needs to remain static and not follow the other ordinary entries into the running entry list. In other words, as entries from 'normal' categories are added to the most recent 5 entry excerpts, this segregated entry remains where it is - and can only be replaced by the next entry in its category.

The idea seems doable, but I can't find any <tag> references to describe how to tag these segregated entries.

Anyone have any ideas?

Thanks,

Chris
OtherNiceMan
If I understand you correctly, What you could do is add a say @static then have a template that pulls out the last entry with that tag and include that template on the main index page.
2470144
QUOTE (OtherNiceMan @ Oct 24 2008, 11:55 AM) *
If I understand you correctly, What you could do is add a say @static then have a template that pulls out the last entry with that tag and include that template on the main index page.



Hey, thanks for your advice. I appreciate it.

I thought of that (well, not exactly) but was looking for something more elegant - like a tag option - which I thought I might not be aware of.

But, making a static entry option is very doable - just more 'blunt force' -like instead of more CMS-like..

Thanks again.

Chris
OtherNiceMan
You could skip the include and add a second block of entry code using the tag and limit attributes to bring it down to a single value.
2470144
Thanks a bunch. I needed something to jog my brain.

Following your advice, it is simple to separate/segregate entries so that you can, for instance, add a "sidebar" entry on your Main Index without having that type of entry listed with your normal entires excerpts and listed in your main category topics.

First, create a "Sidebar" (or whatever you prefer to call it) category;

Second, exclude entries created using the "Sidebar" category from being included with your main entires by using the following attrribute in your mt:Entries tag: <mt:Entries lastn="1" categories="NOT Sidebar">;

Third, in your Sidebar template (content area), use: <mt:Entries category="Sidebar" limit="1"> to ensure that, a) only a Sidebar entry (or entry excerpt) is presented and, b) only 1 sidebar entry is shown; and,

Fourth, download the FilterCategories Plugin from http://www.staggernation.com/mtplugins/Fil...ilterCategories. Using this plugin, you can then exclude the 'Sidebar' category from dispalying with your other major topics in any Category listing.

Voila! You've got a "segregated" entry that you can use as a quick message, ad or sidebar info.

Thanks, Rob

Chris Kane
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.