Help - Search - Members - Calendar
Full Version: mtcategpries
Movable Type Community Forum > Additional Resources > Tips and Tricks
vashinue
I currently have this code in the main index

CODE
<MTCategories lastn="10" category="MoviesComingSoon">
<MTFilterCategories exclude="MoviesInTheatres|MoviesComingSoon|Fashion|Headlines|photolog">
<a href="<MTCategoryArchiveLink>"><MTCategoryLabel></a><br />
<$MTCategoryDescription$><br>
</MTFilterCategories>
</MTCategories>
</p>

<h3>In Theatres</h3>

<p>
<MTCategories lastn="10" category="MoviesInTheatre">
<MTFilterCategories exclude="MoviesInTheatres|MoviesComingSoon|Fashion|Headlines|photolog">
<a href="<MTCategoryArchiveLink>"><MTCategoryLabel></a><br />
<$MTCategoryDescription$><br>
</MTFilterCategories>
</MTCategories>


But it lists the same categories under both MoviesInTheatre and MoviesComingSoon.

I thought that I had it working once but I think I broke it again.

I have a main category of Headlines and then each entry has 3 or 4 subcategories.

Thanks in advance
girlie
The lastn and category attributes aren't for use with MTCategories. MTCategories is intended to list all the categories in your blog.

What is it exactly that you're trying to do?
vashinue
Here's what I am trying to do:

When I make an entry, I assign it the primary category - Headlines so that it will differentiate it from the photolog category. Then I want to assign that entry A MoviesComingSoon or a MoviesInTheatre - which appear on the side. Then I want to assign it a "movie title" category - like Xmen and other subcategories like Fashion.

Under the MoviesComingSoon or the MoviesInTheatre on the side, I want to have links for the movie title but not the rest of the categories.

ie:
Movies Coming Soon
Xmen
Star Wars
Movies In Theatres
Spy Kids
etc
vashinue
I am using MTFIlterCategories - should I not use that within the MTCategory? Or what should I use with MTFilterCategories that will filter out categories within a category?

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