Help - Search - Members - Calendar
Full Version: Making one category Archive Only
Movable Type Community Forum > Additional Resources > Tips and Tricks
Tortured_Artist
I tried to search for other posts on this topic, but couldn't get any queries formed that returned anything useful.

I'm trying to get MT to have a category where posts don't appear on the main page, but do get archived. The purpose for this is to have a "photos" section where I can put up photos that people can look at without the photos showing up on the main page and pushing entries down.

If there's an alternate way to do this using a separate blog, but that shares all of the primary blog's graphics, settings, etc., I'm open to that as well.

The main thing is that I need to have a "Photos" link on the main page that then opens up the archive or blog with a list of available photo entries.

Any ideas? Thanks very much!
Tortured_Artist
So is this not possible? Or have I just not looked in the right places. A terse "RTFM" will suffice (although a pointer would be greatly appreciated!) biggrin.gif
gvtexas
Right now, this is one way to do this (assuming you don't have a zillion categories):
CODE
Change
<$MTEntries$>
to
<$MTEntries category="category1 OR category2 OR category3"$>

..IOTW, list every category EXCEPT the one you choose to post to that you don't want to show on your main page.

[edited: forget to mention that this will work if you have the lastn= attribute in there, but not if you use days=]
bigbaldhead
You can also use the MTEntriesExCat plugin. I use it to keep both photos and Calendar events from showing up in my main content area.
CODE
<div class="blog">
         <MTEntriesExCat category="Photos AND CalendarEvents">

...standard content data

         </MTEntriesExCat>
</div>


it works great!!

-bbh
Tortured_Artist
Awesome! Thanks to both of you for two great alternatives. I like the plugin idea, but haven't been too successful with them in the past.

I appreciate the help!
gvtexas
In the long run the ExCat plugin is better as it allows to specify what to EXCLUDE. Likely that you'll add categories over time (thus having to change the code for listing all categories to INCLUDE) while you're likely to stay with the ones excluded.

BUT...that particular plugin is touchy around certain tags, like lastn, etc., and if you're uncomfortable using plugins, then certainly the other way is easier.
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.