Burnt Orange Report


News, Politics, and Fun From Deep in the Heart of Texas







Support the TDP!





July 12, 2003

Categories!

By Byron LaMasters

Thanks to Charles step by step guide, I finally figured out this categories thing. I tried setting up categories several weeks ago, but I didn't have much success, and I pretty much gave up. Yesterday, I decided that I had procrastinated long enough, and that I'd figure out categories however long it took. So, I did. Charles has a great guide in a .txt file, so it's easy to read. I got a little bit confused at one point, I think because Charles uses Moveable Type version 2.21, and I use version 2.64. The line that he directs you to in the index template was a little different, but I figured it out pretty soon. Charles directs you to this line in your index code (this is partially for my own reference, so bear with me):

<div class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryLink$>#<$MTEntryID pad="1"$>"><$MTEntryDate format="%I:%M %p"$></a>

In order to include the category of the entry at the footer along with the time posted, name and comments / trackbacks, Charles directs you to add the bold code to the line:

<div class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryLink$>#<$MTEntryID pad="1"$>"><$MTEntryDate format="%I:%M %p"$></a> to <a href="<$MTEntryLink archive_type="Category"$>#<$MTEntryID pad="1"$>"><$MTEntryCategory$></a>

My footer code, however, looked like this:

<div class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink$>"><$MTEntryDate format="%X"$></a>

I figured it out, and changed it accordingly:

<div class="posted">Posted by <$MTEntryAuthor$> at <a href="<$MTEntryPermalink$>"><$MTEntryDate format="%X"$></a> to <a href="<$MTEntryLink archive_type="Category"$>#<$MTEntryID pad="1"$>"><$MTEntryCategory$></a>

I also added several categories that previosly had not existed, so that all of my posts since this site began have now been categorized. I haven't organized my old entries on the Live Journal page, but that might be a future project. As you can see, we've written a lot about redistricting, and I hope to expand on to other topics soon, but redistricting has been a fascinating story, and its been fun to blog. My next blog project, which I hope to tackle sometime this weekend, is to clean up my blogroll. I'm thinking of creating a new blogroll just for Texas bloggers, but its still in the planning stage. I also figured out how to change the templates of the archives pages, the individual entry pages, and the categories pages. By making those templates match the index page, it adds my Site Meter code to all of the archives pages, which is good for me, because it gives me a better reflection of my referrals, as I'm slightly obsessed with my Site Meter traffic reports (and I'm proud to report that we received over 1000 hits this week for only the second time - the first was back on the Live Journal page, the week of the Killer D's quorum-busting trip to Ardmore) . I'm also wondering why the footer is double spaced. I can live with it, but it's a little annoying, so if anyone can tell me how to single space the footer, I'd love to know. Anyway, let me know what you think, and if you have an suggestions. Thanks!

Posted by Byron LaMasters at July 12, 2003 01:02 AM | TrackBack

Comments

Y'all need to update your entry at the Truth Laid Bear site.
http://www.truthlaidbear.com/showdetails.php?host=orangereport.livejournal.com

Posted by: Mike Thomas at July 12, 2003 04:46 PM

I updated it several days ago, but for some reason it's not registering on there. I thought that the program automatically detects the Site Meter things... am I missing something?

Posted by: ByronUT at July 12, 2003 06:43 PM

Mike is talking about the Ecosystem, not the traffic report. Since your old LiveJournal page went away, you've dropped out of the Ecosystem. Go register this URL, and you should get automatically added to the traffic report as well.

And I'm glad my post on categories was useful to you. I've just realized that I don't have categories configured on my individual archives, so guess what I'll be doing tonight...

Posted by: Charles Kuffner at July 12, 2003 07:14 PM

Thanks for the heads up on that. I had gone over to the page trying to figure our why it didn't add my blog, and I must have missed that "Add your weblog" link. Thanks for the link!

Posted by: ByronUT at July 12, 2003 07:27 PM
Post a comment









Remember personal info?








April 2005
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30


About Us
About/Contact
Advertising Policies

Donate

Tip Jar!



Archives
Recent Entries
Categories
BOR Edu.
BOR News
BOR Politics
Linked to BOR!
Polling
Texas Stuff
A Little Pollyana
Austin Bloggers
DFW Bogs
DMN Blog
In the Pink Texas
Inside the Texas Capitol
The Lasso
Pol State TX Archives
Quorum Report Daily Buzz
George Strong Political Analysis
Texas Law Blog
Texas Monthly
Texas Observer
TX Dem Blogs
TX GOP Blogs
Daily Reads
College Blogs
GLBT Blogs
More Reads
BOR Webrings
Election Returns
Texas Media
World News



Powered by
Movable Type 3.15