Help - Search - Members - Calendar
Full Version: Category Archive Guru Help
Movable Type Community Forum > Additional Resources > Tips and Tricks
toddg
I have a page that I am using as essentially my bookmark page.
http://www.guill.org/ephemera/archives.html

I have made a bunch of categories thinking that I would assign a primary and then a secondary category and display my list as such.

What I want:

example:
education
Molymod Molecular Model Kits
The Rorschach Inkblot Test
Chem 197 - Luminol Synthesis

education : films
Crab vs. Pipe

What is happening:

education
Crab vs. Pipe
Molymod Molecular Model Kits
The Rorschach Inkblot Test
Chem 197 - Luminol Synthesis

films
Crab vs. Pipe

Any gurus know how to do this?  or if this is even possible?

The code I am currently using is this:


CODE
<MTArchiveList archive_type="Category">
<b><MTArchiveCategory></b><br>
<MTEntries><a href="<MTEntryLink archive_type="Individual">"><MTEntryBody></a><br />
</MTEntries><br />
</MTArchiveList>


Thanks for any help!
--
Todd
kadyellebee
MT really doesn't support having main categories and subcategories.  You might be able to use the Supplemental Category Tags plugin, though -- it differentiates between the primary and the non-primary category, which might be enough to separate what you are looking for smile.gif

Kristine
toddg
I may not be implementing this correctly...but when I tried the MTEntryAdditionalCategories tag it didn't glue and repeated the category multiple times.

Plus it didn't remove the multiple entry problem.

Any ideas on usage?

Thanks for the advice.
kadyellebee
Maybe give us a link?  And use the CODE button above to paste the code you are using so we can test it out?

Thanks,
Kristine
toddg
Whoops! sorry about that.
link is here : http://www.guill.org/ephemera/archives.html

CODE
<MTArchiveList archive_type="Category">
<b><MTArchiveCategory><MTEntries><MTEntryAdditionalCategories glue=" : "><$MTCategoryLabel$></MTEntryAdditionalCategories></MTEntries></b><br>
<MTEntries><a href="<MTEntryLink archive_type="Individual">"><MTEntryBody></a><br />
</MTEntries><br />
</MTArchiveList>


Thanks for the help Kristine!
--
Todd
toddg
Anyone have any ideas?  I am about to trash the idea of using secondary categories here and just using toplevel.

Not exactly what I wanted but oh-well. smile.gif

Other than having "find postings similar to" where would you use secondary categories if you are not able to sort / display by them in some sort of faked heirarchical(sp?)  :) sort of way?

any plans for MT to hav subcategories?

Thanks everyone, love to tool...
kadyellebee
Hmm, I played with this just a teeny bit, and I'm not quite sure if it will do what you want.  I can see that the code you pasted isn't going to work, but I'm not quite sure how to make it work.  I think there's just not the right tag that I need -- maybe an MTIfSecondaryCategory would be a good suggestions for an addition to Brad's plugin?
I know that Brenna did something with MySQL to detect the primary and secondary categories, but I don't remember if there was a tutorial written up on this or not.  Maybe she'll come and comment smile.gif

Kristine
bmk
Hmm, I don't think I'm clear on what you're doing.  :p

BUT.  Yes, you can do a lot more with the categories if you're using mySQL.  They're tagged in there as placement_is_primary = 0 (which means it's a secondary category) or placement_is_primary = 1 (which means it's a primary category).

Here is some mysql code to show entries with their *secondary* categories.  In that example I'm using the SQL Plugin, because the information doesn't have to be dynamic.

Maybe if I understood more (d'oh on me) I could come up with some more code.  :)
bmk
Here's another one (mysql) I found that I had written up...

list entries and show primary and secondary categories
toddg
Brenna:
thanks for the code, I was hoping it could be done straight through MT.  OH well.  :)

I think mySQL is the route to go to get it done...I just have to decide if it is really what I want now.  haha.

Any idea if subcategories are going to be implemented?

Thanks again for all the advice.
--
Todd
kadyellebee
Yes, secondary categories are on the feature request list smile.gif

Kristine
toddg
Kristine:
I was wondering about that!  haha, thanks for the link.
--
Todd
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.