May 31, 2004

Another Day, Another Challenge

I'm diddling about with Chez Cheese, and it occurs to me I'd like to have categories. Now, I've consulted the MT users manual and looked about at other blogs and mucked about with my template... all to no avail.
So can someone tell me what code to insert, where to insert it, and how to make a linkable list on my sidebar pointing to categories? Also, can I go back into my previous entries and assign them to a category as well?
Or should I just give up and go back to boobie pics what I know?
Thanks in advance.

Posted by LeeAnn at May 31, 2004 09:19 PM

Assuming you've got the same stuff as I do, this should work:

Login and click "manage weblog" on Cheese Stands Alone.

Click on "weblog config" on the left menu.

Click on "preferences" (along the near top of the page)

Scroll down until you see the bold world "Archives" (or "Archiving" pehaps) maybe 2/3 of the way down.

Where it says "preferred method of archiving", select "Categories", then SAVE it. (but don't bother to rebuild yet.)

At the top again (where you earlier clicked "preferences") Click of "Archives".

Scroll down to the selection and click on all methods of archiving you would like enabled. I (and most) use "Individual", "Monthly" and "Categories".

SAVE it.
Now you can REBUILD the templates.

After you've Rebuilt, click on New Entry. The category field (box) should be over the right top of the main entry body field, and just to the right of the Title field. If it's there, YAY! If it's not, D'OH!

To assign a Category to all of your past posts you'll have to open them individually, add the category in the field and then SAVE.

NOW you'll have to create a sidetitle for the categories to display them in the sidebar since you probably don't have one.
That's probably just a matter of copy/pasting some html. Let me look around.....

Posted by Tuning Spork at May 31, 2004 11:20 PM

Here is the html for the Categories sidetitle:
(The word Contents in the second line is what the categories will be titled. If you want to change it to, say, Cultures of Cheese or something, just replace it before you copy/paste it.)........



Posted by Tuning Spork at May 31, 2004 11:28 PM

D'OH!!!!! That html did post!!! yikes!!!
Well, it's easy enough to just go to Blather Review, click View -> Source and scroll down 'til you find the html. Though the parentheses will be those sharpy angled thingies, it'll look alot like this:

(div class="sidetitle")
(div class="side")
(a href="($MTCategoryArchiveLink$)")($MTCategoryLabel$)(/a)(br)

Posted by Tuning Spork at May 31, 2004 11:33 PM

First, go to your Weblog Config. Select Archiving. Put a check in the box left of Category. [SAVE]

Next, open your Main Index Template. Copy the following code into your sidebar where you want the list of categories to appear:

<div class="sidetitle">
Moldy Cheese [Archives]
<div class="side">
<a href="<$MTArchiveLink$>" title="Read all the <$MTCategoryLabel$> posts"><$MTCategoryLabel$> (<$MTCategoryCount$>)</a>
<br />

This will give you a list of categories, the number of posts in that category, and title popup when you hover over the link.

You can add categories in your post edit screen or use the categories in the left toolbar to add several at one time. Don't foget to [SAVE] after using the sidebar method.

As for adding the categories to old posts, I recommend adding your category list first, then use the power-edit mode to assign categories to old posts via the drop-down menu in the category column. [SAVE] & [REBUILD] after you finish. It will take you a while to add categories to all the old posts, have fun!

One thing to remember... your rebuild times will be increased every time you post or comment due to the extra archives being rebuilt.

Posted by Madfish Willie at May 31, 2004 11:36 PM

Crapola... I guess Spork and I were answering at the same time.

Posted by Madfish Willie at May 31, 2004 11:38 PM

Also, you can assign more than one category to each post. The add secondary category link will appear after you save your post the first time.

Don't forget to read the Helpful Thingy Trickle Posting for delayed posting instructions.

Posted by Madfish Willie at May 31, 2004 11:48 PM

This is exactly why I don't have to be a genius.
I have genius friends. :)
Thanks, y'all.

Posted by LeeAnn at May 31, 2004 11:50 PM

iizko vboekuge.

Posted by Howell at December 29, 2004 02:59 PM

rbnbadrwc oaorjoh.

Posted by Prospero at December 29, 2004 03:02 PM

coeien isvrdrmye.

Posted by Dionisius at December 29, 2004 03:05 PM