Page 1 of 1
custom archive
Posted: Tue Jan 10, 2006 1:54 pm
by randulo
Garvin, what a great idea, thanks!
But I'm trying to fix it so it shows as many years as there are in the blog. Right now, the rdrop down shows 2006 and 2005. If I set ALL, it does list them all. I looked at the code but I'm perplexed by it
I have someone who will be entering 800+ articles from 1999-2006.
Re: custom archive
Posted: Tue Jan 10, 2006 1:59 pm
by garvinhicking
Actually, this was already mean to be that way, but there was a "entries" string missing in the plugin.
I just fixed that in the new version 1.4 of that plugin!
Regards,
Garvin
Re: custom archive
Posted: Tue Jan 10, 2006 2:54 pm
by Guest
garvinhicking wrote:Actually, this was already mean to be that way, but there was a "entries" string missing in the plugin.
Can you paste the line in here? or PM ?
thx
Re: custom archive
Posted: Tue Jan 10, 2006 3:04 pm
by garvinhicking
Just search for "{$serendipity['dbPrefix']} " and change it into "{$serendipity['dbPrefix']}entries".
Regards,
Garvin
Posted: Tue Jan 10, 2006 4:50 pm
by randulo
Thanks for that garvin, it worked ok.
I'm looking at a little problem now where when you list by title, if the title begins with a quote such as
"Oh no!" says Bruce Willis after divorce
The quote is of course printed on top. Something for the user to be aware of I guess.
The format you used in Custom Archive would be really hip for a search IMO. Has someone done this already?
Do many people have more than 1000 entries in their s9y blog?
Posted: Wed Jan 11, 2006 1:10 pm
by garvinhicking
I'm not sure, I understand. What exactly do you mean with that "quote printed on top" thing?
Can you also elaborate on the "search" issue?
Regards
Garvin
Posted: Wed Jan 11, 2006 6:09 pm
by Guest
garvinhicking wrote:I'm not sure, I understand. What exactly do you mean with that "quote printed on top" thing?
Can you also elaborate on the "search" issue?
Yes, the list sorted by title is cleverly printed with the first letter A-Z. Unfortunately, if a title begins with a double quote, the double quote will be stuck out there at the top of the list. (Ugly!) Workaround, don't start titles with double quotes.
On the search business, I meant that you filter presentation in custom_archive rocks! It would be cool if someone has written (or would write) a search for articles that
a) looks only in articles and titles (not all the text everywhere like dates)
b) presented the results like your custom archive
The way search results are currently shown (and this is standard) you see the whole article and can't determine easily if it's what you want. Plus the search appears unpredictable to me, often requiring exact words rather than fragments.
Posted: Wed Jan 11, 2006 6:10 pm
by Guest
Anonymous wrote:garvinhicking wrote:I'm not sure, I understand. What exactly do you mean with that "quote printed on top" thing?
Can you also elaborate on the "search" issue?
Yes, the list sorted by title is cleverly printed with the first letter A-Z. Unfortunately, if a title begins with a double quote, the double quote will be stuck out there at the top of the list. (Ugly!) Workaround, don't start titles with double quotes.
On the search business, I meant that your filter presentation in custom_archive rocks! It would be cool if someone has written (or would write) a search for articles that
a) searches only in articles and titles (not all the text everywhere like dates)
b) presents the results like your custom archive does
The way search results are currently shown (and this is standard) you see the whole article and can't determine easily if it's what you want. Plus the search appears unpredictable to me, often requiring exact words rather than fragments.
Posted: Thu Jan 12, 2006 11:48 am
by garvinhicking
Hi!
Yes, the list sorted by title is cleverly printed with the first letter A-Z. Unfortunately, if a title begins with a double quote, the double quote will be stuck out there at the top of the list. (Ugly!) Workaround, don't start titles with double quotes.
Ah, okay. Actually, ordering it different is a technical harder way to achieve, so I guess one would need to live with that way of display
On the search business, I meant that you filter presentation in custom_archive rocks! It would be cool if someone has written (or would write) a search for articles that
a) looks only in articles and titles (not all the text everywhere like dates)
b) presented the results like your custom archive
Ah, I understand. Doesn't the "custom archive" plugin already have a "fulltext: " field? I thought it exactly duplicates the "edit entries" admin panel functionality, which also has this search field?
The way search results are currently shown (and this is standard) you see the whole article and can't determine easily if it's what you want. Plus the search appears unpredictable to me, often requiring exact words rather than fragments.
Did you have a look at the "livesearch" plugin? I find the output of that plugin rather helpful...
Regards,
Garvin
Posted: Thu Jan 12, 2006 5:27 pm
by randulo
Livesearch? Can't find it anywhere.
I'm not sure why we're talking about full text searches, that's what I do NOT want. What I was referring to was simple a search field that looks in title and content (intro and body) only and returns a list of titles to click on. As it happens we don't want author or date but that's easy to configure in the template.
Posted: Fri Jan 13, 2006 11:41 am
by garvinhicking
Livesearch is part of the bundled plugins that come with Serendipity! It's an event plugin.
About the plugin suggestion, this sounds quite good. Where exactly would you want to have the input fields? Could you make a screenshot of how you'd like it to look like? I could then implement it into the customarchives plugin?
Best regards,
Garvin