Page 1 of 1

Static HTML Page Plugin - Search

Posted: Mon Jan 28, 2008 2:34 pm
by Muskelkatermann
Hi,

I have some little problems with static html pages and the search function:

1) Static html searchresults are only shown if there is at least one normal blogentry matching the given search criteria.

2) Static html searchresults don't print german chars like ü correctly. There comes something like an für instead.

4) I would like to change the format of the search result listing für static pages - where do I find the Template`?

Thanks so far

Greetings
Malte

Re: Static HTML Page Plugin - Search

Posted: Mon Jan 28, 2008 2:37 pm
by garvinhicking
Hi!

What s9y version are you using? Whats the URL to your blog? Especially #2 shouldn't happen.

#4: See plugin_staticpage_searchresults.tpl inside the plugin dir.

Regards,
Garvin

Posted: Mon Jan 28, 2008 2:45 pm
by Muskelkatermann
Hi,

that's fast! Thanks.

S9Y Version is 1.2.1.

The URL ist:
http://87.106.184.110/Orthopedikum/blog/

Here is a static html page:
http://87.106.184.110/Orthopedikum/blog ... es/05.html

When you search for "Diagnose" you have 1 result from the Blog "Bilder" and the two static pages "Sonographie" and "Diagnostik"

When you search for "Krankengeschichte" there are no results, but this word is in the static page "Diagnostik".

greetings

Posted: Mon Jan 28, 2008 3:11 pm
by garvinhicking
Hi!

Hm, when I search for "Internetseite", the Umlauts are displayed properly in the staticpage searchresults? Do you have a case where an umlaut is not shown properly?

About the missing search: Sadly this is template dependent. You would need to edit your content.tpl template file. Search for this:

Code: Select all

<div class="serendipity_search serendipity_search_noentries">{$content_message}</div>
and change it to this:

Code: Select all

<div class="serendipity_search serendipity_search_noentries">{$content_message}</div>
{serendipity_hookPlugin hook="entries_footer"}
This hook is the one that will render the static page search results, and it would not be executed if no blog entries are found...

HTH,
Garvin

Posted: Mon Jan 28, 2008 3:29 pm
by Muskelkatermann
Strange!

now the Umlauts are displayed correctly. I love it when a problem fixes itself.

Thanks for the Hook, works fine.