Help - Search - Members - Calendar
Full Version: List entries outside of category in archive
Movable Type Community Forum > Additional Resources > Tips and Tricks
FlavLo
I'm creating a Faculty page for an elementary school, and I've assigned categories to the entries (i.e. first grade, second grade). This works well, since I have a side menu that lists categories. I also have a side menu that lists entry titles, and I use that field for the name of the teacher.

Here's what I want to do: I would like to have the same side menus everywhere, i.e., each category archive page would have a menu that lists all the categories (this works) and all of the teachers -- even those outside of the category (this doesn't work). Right now I just get the entries within a particular category. If I try to use the "categories" command in the tag I get nothing at all.

Is there a way to include entries outside of the category on a category archive page?

Here's the code in question:

CODE
<div class="side">
<MTEntries sort_by="title" sort_order="ascend">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />
</MTEntries>
</div>
LisaJill
Well, different purpose, same solutions:

Read Me

does that help?
FlavLo
Hadn't thought about going PHP. The problem is that I'm kludging this piece of Movable Type onto the site before I redo the whole thing, but your suggestion makes a lot of sense. I was hoping someone knew an MT hack that would help, because I spent a lot of time looking at all of the tags.

Anyway, thanks for the suggestion.
LisaJill
You can check the manual for MTIncludes - but those, too, would be context sensitive.

The reason I suggest php is because thats the only way to have it non-context sensitive to the archive type; at least that I know of. =)
FlavLo
Nope, going PHP did the trick. I'm going to make some other changes now that I've gone PHP. I was using RandomEntries and was going to install MT-Rebuild, but I'll just make that PHP also and avoid the rebuild.

Thanks again!
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.