WAP - How to add a simple WML page created by Movable Type

| | Comments (0)

After a quick test with my mobile phone, I've sucessfully created a simple xml template that posts the newest article in the blog which is readable by mobile devices.

So now I can moblog both ways - letting the world read my latest blog and blog from my phone.

As a starting point in this exercise, I'm only going to have the last entry used as my wap page, mainly due to the complexities of creating a simple and reliable navigation system using WML (Wireless Meta Language). I have some thoughts on this, and will experiment later.

For the test, I created the following template:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<MTEntries>

<card id="a<$MTEntryID pad="1"$>" title="<$MTEntryTitle$>">

<p><$MTEntryExcerpt$></p>

</card>
</MTEntries>
</wml>

By default, every entry uses the first 40 words to create an excerpt - you can change this in options - the reason I'm using excerpt is if a blog entry gets too big, I'm not sure how a mobile device will handle it, so I'm playing safe for the test.

And that was effectively it for the test - I rebuilt the page and pointed my phone to the correct url, and there was my excerpt!

For my next test, I will get a few consecutive posts to link to each other in their respective category.

Leave a comment


Type the characters you see in the picture above.

About this Entry

This page contains a single entry by Tim Knight published on March 4, 2006 7:56 PM.

Firefox 2 might have a new User Interface was the previous entry in this blog.

55 Reasons to Design in XHTML/CSS is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.