Help - Search - Members - Calendar
Full Version: Archives by title?
Movable Type Community Forum > Additional Resources > Tips and Tricks
jjlewis
I'd love to find a workaround to create archives by title. For one MT installation, I'm using the titles as another sort field, essentially. I can fake out the system to produce a sort of archive by title by including a link to the search function, searching on the title text. But the resulting pages don't get into search engines, unfortunately. And I'd like them too.

Any workaround to suggest -- or even straightforward solution I've just happened to miss?
girlie
Do you mean you want a page that lists all your entries alphabetically?

I think I'm unclear on exactly what you want, can you elaborate?
jjlewis
QUOTE (girlie @ Apr 26 2003, 02:23 PM)
Do you mean you want a page that lists all your entries alphabetically?

No, I have a page which lists all 1600+ posts alphabetically by the title.

Perhaps by being explicit it's easier to explain. I am using MT for a quotations site. Each entry is an individual quotations. I use categories for the topics of the quotes, so there are pages of quotes by topic. I use the title field for the author's name. Not perfect, I know.

To get a list of quotations by author, the only way I can think to do it now is to do a sort on that name, and that brings up as well all the category pages with those quotes on them.

What I'd really like to do is have archive pages with all the entries that share the same "title" which in this case is the quotation author.

(I sure wish there were an alternate key field, that would solve a lot ....)
adamrice
There is the "keywords" field (disabled by default, but can be enabled by customizing your posting view), unless you're using that for something else--seems like that would be perfect for your needs. There are also plugins to embed formalized data into the body, and publish it as if it were in separate fields, though they don't really help you sort on them.
girlie
Or there's the option of using author name as an additional category, and assigning multiple categories to each entry. I suppose that could be a lot of names though?
kadyellebee
What about some PHP to show the Author name only when selected? On a similar idea as the author entries on TRK: Author Archives...

Kristine
jjlewis
All of these are good ideas, but don't solve the original problem. It works fine to use the author name as the title -- all I now need to do is figure out how to do an archive that puts all the entries that share a title onto the same page. I don't see any way to archive by keyword or MTauthorname anyway -- and using MTauthorname would be a LOT of conversion work for thousands of quotations and hundreds of quote authors!

I'm not using PHP nor do I think I want to get into the conversion to that format (if I understand correctly what PHP implies). It's not worth that amount of effort and trial-and-error.

As an alternate, is there a plug-in -- I could swear I saw one at some time -- that breaks down the title index by first letter, so all the A's will be together on one page, etc.?
faf
but category will solve that.

Create a category for each name (ie. person being quoted) and assign them

Then on each of those category pages, it'll only contains archives by that author.

girly mentioned it but i guess you mistook her saying "author name" for the person logged in you MT...

did you mean the "person being quoted", girly?

eg. have these categories. ghandi, jesus, bryan boitano, Captain Planet


Then when you create a quote by captain planet, you assign it to that cat.

MT will rebuil by category... so you're sorted.

or am i wrong?
jjlewis
Okay, I guess I'm not being clear. I already have topical archives which use the category field, and I don't want to mix the authors into the topical categories, nor can I write exclusions for hundreds of categories in the templates to keep the two kinds of archives separate.

So I'm still looking for a way to archive by title in addition to the already-working category archives.
adamrice
Actually, I think the keywords field would be just the ticket for the author in this case. You could use the 'related entries by keyword' plugin.

http://mt-plugins.org/archives/entry/relat...esbykeyword.php

There's probably a simple MySQL command (that I don't know) to relocate the title field to the keyword field. You could replace the title field with a more unique identifier, like the first few words of the quote.
jjlewis
I didn't realize I could use the keyword field that way -- sounds very promising.

It might take some time but converting the file is a possibility. Even if for now I leave the word both places -- which I might want to because the keyword solution would require entering the ugly version "Ralph_Waldo_Emerson" for the author.

I have used the keyword field for other significant keywords that someone might search with, so that's a small loss with this solution.

So ... if I can then do archives this way, it will be great.

Still hoping for a direct solution though ...
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.