Help - Search - Members - Calendar
Full Version: Linking to Archive Page w/ Multiple Categories
Movable Type Community Forum > Additional Resources > Tips and Tricks
StephenVoss
Hi,
I run Portland Stories (www.portlandstories.org), and am in the process of moving it over to Movable Type.

What I've done is have 14 different categories, each of the following for both "Your Stories" and "Our Stories"
N. Portland
NW Portland
NE Portland
SE Portland
SW Portland
Citywide Portland
In Transit Portland

Now, on the main page of the site, I'd like to have 2 columns like I do now, entitled "Your Stories" and "Our Stories". The Your Stories would pull from all 7 "Your Stories" categories and display the newest 5 entries or so, and the Our Stories column would do the same. Is this possible, can I pull the newest overall entries from numerous categories?

Thanks.

Stephen
adamrice
You can, although this sounds complicated enough that I'd do "your stories" and "our stories" as two separate blogs. Publish the content of each blog as a "stub" file, and then use includes to pull them together into the two parallel content streams on one page.

Otherwise, you'd set up one blog with 14 categories, and then create two sections of entries differentiated thusly:
CODE
<MTEntries category="YS-NE OR YS-NW OR...">
vs
CODE
<MTEntries category="MS-NE OR MS-NW OR...">

You could also do this as two separate index templates which were then included into one master page--there might be advantages to each approach.
StephenVoss
Hi,
I'm working on Portland Stories.

If you go here: http://www.portlandstories.org/
you can see where I'm at.

What I'm having trouble with is, if you click on "Our Stories - Southeast Portland" in the text:

John's Pizza by Stephen Voss in Southeast in Our Stories - Southeast Portland,

it takes you to the Our Stories - Southeast Portland page, when I want a page to exist that displays both "Our Stories - Southeast Portland" in one column and "Your Stories - Southeast Portland" in the other.

My other issue - the stories are showing up in both columns, even though I've specified the specific categories to be listed in each... is there some problem with having a category that has spaces in the name (i.e. "Our Stories - city-wide")?

Thanks,
Stephen
girlie
Topics merged for continuity.
StephenVoss
Thanks for the helpful answer, I was hoping to keep this simple, but it looks like doing it as two separate blogs and then SSI'ing them together is the best option.

Thanks again,
Stephen
girlie
Spaces in category names shouldn't be a problem, I use them in mine.

Instead of separate blogs, you can just create an additional Category Archive Template, then merge the two category archive pages together via SSI.
amme
a workaround could be to have a css file in combination with with MTOtherBlog installed. for more on the css side try :little boxes tutorial.
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-2010 Invision Power Services, Inc.