Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1:
How to Create Handheld Friendly Content

 

 


Damon
Staff / Moderator


Oct 10, 2002, 9:19 AM

Post #1 of 3 (2283 views)
Shortcut
How to Create Handheld Friendly Content Can't Post

Hi,

I compiled a few previous post into this one post to explain how to create Handheld friendly content or email newsletter ready content. The steps are similar the same for each. Here it is:


I previously tried using the WebFeed Generator to create handheld content and adding it to my handheld using the Avantgo.com service but I was unsuccessful - content doesn't appear because of JavaScript :(

So after brainstorming for a while I found a solution :)

Instead of using the WebFeed Generator, I created a custom article index template. Then pulled up the article results using that custom template via a search query.

Here is my steps:

1. Download the /templates/index/default.html template. Make a backup. Copy it and save it as handheld_default.html (or whatever you prefer to call it).

2. Modify the handheld_default.html template to only publish the content you want to include for the handheld version. So for example, strip out the top section, left navigation and right latest headlines section. Maybe even add a separate smaller graphic at the top.

3. Save changes and upload to the /templates/index/ directory.

Note:
Make sure that you have no JavaScript in the customized handheld template or parts of the page may not appear on the handheld.

Here is an example of the URL that will bring up the article results with the customized email template that can be emailed out:

http://www.yoursite.com/cgi-bin/artman/exec/search.cgi?perpage=5&template=index/handheld_default.html

If you only want to make available articles from one category, use a similar URL with the addition of the category number. Here is an example:

http://www.yoursite.com/cgi-bin/artman/exec/search.cgi?cat=3&perpage=5&template=index/handheld_default.html

4. Instead of having a long search query URL for users to link to or add to Avantgo as a custom channel, what I did was create a separate static page that will include the handheld search results using a Server Side Include.

5. Created a new directory and page to publish the static handheld friendly page.

Example: http://www.yoursite.com/handheld_friendly/index.shtml

6. In the index.shtml page I added a Server Side Include to pull in the handheld friendly page search results.

Example: <!--#include virtual="/cgi-bin/artman/exec/search.cgi?start=1&perpage=6&template=index/handheld_default.html" -->

And that's it. The handheld friendly results should now be published to the /handheld_friendly/index.shtml. Now this page can be used for Avantgo to add a Custom Channel.

One thing to note is that I'm on a Unix server so the SSI may be slightly different on a Windows server.

7. Article Links: To link the headlines of the articles in your published Handheld friendly index to Handheld friendly full article pages you can make use of the printer pages that are already generated for each article.

In your customized Handheld friendly template, replace:

<!-- template insert : $article_list$ -->
<!-- templatecell : row -->
<font class="artname"><a href="$detail_link$">$art_name$</a></font><br>

with

<!-- template insert : $article_list$ -->
<!-- templatecell : row -->
<font class="artname"><a href="$art_printer_url$">$art_name$</a></font><br>

This will link the headline to the printer page instead of the regular article page. The printer pages are great to use because by default they don't include additional navigation which you wouldn't want on the Handheld.

Note: Make sure that you have no JavaScript in your printer pages (like the page break add-on) or the printer page content won't appear on the Handheld.

Whew! :) Well, that's it. I hope that helps. If you come across any tips of your own, let me know.

Cheers
Damon Edis
interactivetools.com

(This post was edited by Damon on Oct 10, 2002, 9:20 AM)


ecamty
User

Oct 10, 2002, 4:41 PM

Post #2 of 3 (2261 views)
Shortcut
Re: [Damon] How to Create Handheld Friendly Content [In reply to] Can't Post

Hello. Thanks a lot for the help!

I have found a little detail, however:

the "link more" (more>>) doesnt work on my palm, so I am working to find a workaround. As soon as I find it, I will post it here, but I think the best solution will be to include a lot of articles (say 20 or so) and have a list at the top of the page linking to each article (using "<a name=>")

Thats it. I will work on it and come up with a solution.

.
Here to help!
===================
Eugenio B.
www.ecamty.net
itools@ecamty.net
===================


Damon
Staff / Moderator


Oct 14, 2002, 3:49 PM

Post #3 of 3 (2209 views)
Shortcut
Re: [ecamty] How to Create Handheld Friendly Content [In reply to] Can't Post

Hi Eugenio,

I haven't come up with a solution for the more link just yet either. Generally I have been just making available a set number of articles per page. For example with the URL to bring up handheld friendly results you could change the number of articles that appear per page to 20.

http://www.yoursite.com/cgi-bin/artman/exec/search.cgi?perpage=20&template=index/handheld_default.html

I also removed the "more >>" link form my handheld template because I'm currently not using it.

Cheers
Damon Edis
interactivetools.com

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4