[wp-hackers] Page searching examples [was: 2.4
planning discussion]
Chris
chris.hearn01 at ntlworld.com
Sun Sep 30 09:07:58 GMT 2007
Yes, take your point about forms - on my sites I only display the titles
of items that contain the search word, not the whole thing. I guess
that the excerpt idea would get around that if they are added - I
don't know how/if most blogs make heavy use of excerpts?
I can't think of any other content you wouldn't want displayed (i.e. is
likely to cause a $_POST) so maybe just exclude forms from the results?
Otto wrote:
> The problem is how do you display the results? If somebody has, say,
> an email form on a Page, and a search happens to find it, then it's
> going to be returned in the Loop and now your form displays on the
> search results page.
>
> If you're going to allow searching of Pages, then there is going to be
> stuff displayed on the search results page that you may not want
> displayed on that page.
>
>
> On 9/29/07, Chris <chris.hearn01 at ntlworld.com> wrote:
>
>> Template Search compatible might be ok, but surely people use pages and
>> posts in various ways on their sites - wordpress is flexible, but
>> generally one might assume that pages are for more static (unchanging,
>> or not often) content, posts for more transient content...
>> It makes no sense to me to exclude page content - whatever the user is
>> looking for may be on a post _or_ a page
>> they can see page content by selecting it from the menu or whatever, so
>> would expect it to show up in search results - even if the result just
>> shows the titles of the post/page, at least it would be there.
>> So please - Search => results from both posts and pages, (and showing
>> excerpts where available is fine - some will make heavy use of them some
>> not I guess).
>>
>> Chris
>> P.S. I hope the idea was not to _just_ search the excerpt for the
>> results - apologies if I have missed something!
>>
>>
>> Otto wrote:
>>
>>> +1 on the excerpt idea. I use the_excerpt as the meta description for
>>> all pages on the site. It would be very nice to be able to manually
>>> define this for Pages.
>>>
>>>
>>> On 9/29/07, Stephen Rider <wp-hackers at striderweb.com> wrote:
>>>
>>>
>>>> I think a combination of set_theme_capability() and Otto's suggestion
>>>> RE templates might be best.
>>>>
>>>> That is: rather than indicating on a page by page basis if it's
>>>> compatible, do it on a _template by template_ basis. In the theme,
>>>> each page template has to have a marker that indicates "search
>>>> compatible".
>>>>
>>>> Either way, I'm all for adding an excerpt field to pages, just on
>>>> general principle. This could be useful for more than just search:
>>>> Imagine, for example, a site index page that shows the name of the
>>>> page _and_ the description, drawn from that field.
>>>>
>>>> Stephen
>>>>
>>>>
>>>> On Sep 29, 2007, at 10:22 AM, Casey Bisson wrote:
>>>>
>>>>
>>>>
>>>>> set_theme_capability('full_search',true) sounds like a reasonable
>>>>> solution to me, but I think we'll also need to put the excerpt
>>>>> field on the Page editing screen so that people can have a chance
>>>>> at writing reasonable synopses of their pages (espy those with forms).
>>>>>
>>>>>
>>>> _______________________________________________
>>>> wp-hackers mailing list
>>>> wp-hackers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>>>
>>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
More information about the wp-hackers
mailing list