October 21, 2007

RTML Tag

One of the common questions that I receive when playing with the RTML programming language for the Yahoo Store is

"How do I add this HTML tag or what is the RTML equivalent of the this HTML tag?"

There are a couple ways to accomplish this task.

First you can use the TEXT operator and type in the HTML. 

If you choose this method, you need to remember that anytime that you want to show a quote '  "  ', you need to escape the quotation character out - meaning you need to use a '  \  ' prior to the quotation mark.  So the finished product would look like:  \"

Also you need to remember to use an end tag.  For example, if you put in the following:

TEXT  "<td>"

TEXT  "blah blah blah"

TEXT "</td>"

This method does work but it is a little extra work.

Another method is to use the TAG-WHEN method.

It takes two arguements.   The first is the actual HTML tag (e.g. td shown above).  The second arguement is typically a "t", which stands for true.

So, say you want to add a italics to your text.  Here is what the finished product would look like:

TAG-WHEN   tag "i"

                         test :t

    TEXT "If I want to show something in italics, I use the i tag."

The result would be:

If I want to show something in italics, I use the i tag.

The TAG-WHEN method is a useful RTML function that can save you some typing and minimize the chance of mistakes because it provides the closing tag for you.

 

 


Spread the word

del.icio.us Digg Furl Reddit Help

Permalink • Print • Comment

Trackback uri

http://www.ystoretutorials.com/blog/22/rtml-tag/trackback/


Are you ready to learn how to build your own Yahoo Store?
Join Y Store Tutorials for time-savings, beginner to advanced video training and community help - Get a Y Store Tutorials Backstage Pass Now!

Leave a Comment

You must be logged in to post a comment.

Yahoo! ® and its related trademarks are registered trademarks of Yahoo!, Inc. ®
This website is not affiliated with or sponsored by Yahoo!, Inc. ®
YStoreTutorials.com is a video training product website dedicated to the use of Yahoo! Stores ®.