Mobile Search Close to Complete

user-pic
Vote 0  

Filed:

 
It seems I have a couple wrinkles to iron out, but I have search for the mobile template finished. In Movable Type terms, this requires a second search results template and a config directive, read about that at MT.org if you are so inclined.

For those who want to see it in action, head over to the Mobile Edition of the Dev Blog. There are still some bugs, but it works well.
Ah, so you clicked the "Continued" link. That could get you into trouble here on this blog. This is what is not working correctly, and I have asked Support why:

  • If you perform another search on the Search Results page, you will get your new results in the default template, which is not formatted for mobile. This is even though the search form has the hidden tag of <input type="hidden" name="AltTemplate" value="mobile">
  • If the search results makes it past 20, the results are paginated. If you click Next in the footer, you go to Page 2 of the results, again in the default search results template. At least I know why this is happening, it is not appending &Template=mobile to the URL. The tag <$mt:NextLink$> is not adding the Template parameter to the URL. I am just not sure how to construct the entire URL as it is made up of many parts: Base Script URL, Search Term, IncludeBlogs, Limit, Offset, and finally the part I need added, Template.
Once those two issues are resolved, I will be pushing this update to all our MT Pro and MTOS sites - which will not take long at all. I cannot say enough about globalizing your Movable Type install. That and creative SQL scripts.

Email to a friend

Name and Email are required for anonymous comments. You can sign in to comment using Facebook, OpenID, and many other services. Register with BG Views to access community features.

Leave a comment

 Network Search
Custom Search

Poll

Do you like the toolbar at the bottom of this blog?

View results

View & Download PDF


View our support community!

About This Blog

Ken Edwards (and hopefully other project members) will be blogging here — a place to keep up on what is happening on the BG Views project. You will find bits of code, project updates, and random technical information aimed at confusing the hell out of you. More »

Subscriptions

Mobile Edition

Mobile EditionAccess the BG Views Developer Blog on your iPhone or other mobile device. Read more about our mobile site »
Powered by Movable Type 4.261

 

Also powered by:

  • Caffeine (Dr. Pepper)
  • Cup Cakes (Hostess)
  • Pizza (Pisanello's)