Results 1 to 3 of 3


  1. #1
    Join Date
    January 18th, 2005
    Is it possible to create your own .fmt file and use it to display browse results?

  2. #2
    Join Date
    January 18th, 2005
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by foofighter:
    Is it possible to create your own .fmt file and use it to display browse results?<HR></BLOCKQUOTE>

    Yes you can. If you look in the amazon-format directory you will see a file called library.fmt. That contains the entire formatting library that XML uses to format results. You can think of formatting codes as a set of macros that are HTML interspersed with "if" statements.

    Use those formatting codes to create your own formatting file to display results any way you like... call the file "mylibrary.txt" for example.

    Then edit the amazon.ini and set

    format.librarly "mylibrary"

    Note that you don't specify the file extension. Also note that the file must be a text only file... i.e. use Notepad editor.

    Beyond that, the only limitation is what information AWS feeds you. For example, if you are using the &lite switch, you can't display the "stars" rating because AWS does not include that in lite feeds. You can put it in your formatting file, it just won't show up.

    Hope that helps...

    Have Phun...

  3. #3
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    The formatting of results such as is defined using the format.list1.* formatting codes in the amazon-format/library.fmt formatting library file.

    If you don't specify a format= parameter as part of the URL, then format.list1.* format is used (format.list2.* is used if the configuration variable is 2).

    If you want to change the default format of browse results lists, then edit library.fmt and set the format.library configuration variable: format.library library

    If you want to override the default format for a particular results, then you can use the format= parameter, such as: which would use amazon-format/list6.html to format {results}

    See also:

    <UL TYPE=SQUARE><LI>Overview of Layout Formats
    <LI>Format Templates -- using a list style
    <LI>Format Templates -- using a detail style
    <LI>Using "IF" statements
    <LI>Format Templates[/list]Yours truly,
    Cusimano.Com Corporation
    David Cusimano

  4. Newsletter Signup

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts