Categories: everyday life

About SearchMaxResults.

   I uploaded “Rakushō no Goku No.21″on May 30. And it gave me a trouble. Why? I had made a link for searching on my English blog’s right sidebar and the top page. It is the link which gives you all posts of “Rakushō no Goku” in ascending order, when you click it. But its limit is 20 posts.

   Though I changed 20 into 40 to remedy in the link, it didn’t work because default set value of “SearchMaxResults” was very strong.
   I made a question at Movable Type Forums and had an answer from Nick. By his advice, I wrote “SearchMaxResults 40” in my mt-config.cgi file. It worked, but I had another problem. This change reflected to all of the results by mt-search.cgi. What I want is only to work when I use the link as an external one.

   So, yesterday I searched for the tag <$mt:SearchMaxResults$> in my template files. I found them in two places, at Search and Syndication Widgets. I rewrote <$mt:SearchMaxResults$> => 20. Finally, the link has functioned as expected. 🙂

o6asan

Recent Posts

Very easy, sweet potato yōkan recipe.

The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…

6 months ago

On my home network, I’ve built an FTP server that I left for long time.

After a long time, when I checked broken links and fixed them, I got an…

2 years ago

Moving “o6asan’s BBS”.-#2

I made a box, so I prepare the contents. Theme and Plugins. The theme is…

2 years ago

Moving “o6asan’s BBS”.

Hehe, it's been almost a year since my last post. I received a notification email…

2 years ago

I completed my WordPress to Sub-domain.

About a week ago, I finally started to renew my sites, which I had been…

4 years ago

Happy New Year!

   Happy New Year! It is the beginning of a new year.    This is a year…

5 years ago

This website uses cookies.