custom archive

Creating and modifying plugins.
Post Reply
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

custom archive

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: custom archive

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Re: custom archive

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: custom archive

Post by garvinhicking »

Just search for "{$serendipity['dbPrefix']} " and change it into "{$serendipity['dbPrefix']}entries".

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post 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.
Guest

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply