Help - Search - Members - Calendar
Full Version: How To Restrict Entries List To A Primary Category?
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
Will Morris
Using 4.21 pro pack. This may be something obvious I've missed.

I need to show a list of entries who all have the same primary category.

I need to exclude entries that do not have that category as primary, but may have it as secondary.

So if I've got:

- Entry 1 in category: A (primary), B

- Entry 2 in category: B (primary), A

- Entry 3 in category: A (primary), B

I need to be able to create a list that would only include Entry 1 and Entry 3.

Does this make sense? Is there a way to restrict the entries list to only show entries with a particular primary category?

Thanks.
staypuftman
Its a special tag:

CODE
<MTEntriesWithSubCategories lastn="NUMBER_OF_ENTRIES_YOU_WANT" category="CATEGORY HERE">


Movable Type's programming language is powerful but TERRIBLY documented - and I mean terribly when I say that. Their website is a completely joke in terms of documentation assistance - you basically have to pick up an entire programming language without any real examples. You are on your own largely.

Reference the tag library and just play with stuff from there:
http://www.movabletype.org/documentation/appendices/tags/

Reverse engineering their own templates that they include with the software suite is your best bet,
john


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.