Step 2. Creating a new template specification (*.ini) file (cont'd)

Example: Template specification file for my_new_template.

The easiest way to create your own template specification file is to copy the template1.ini to my_new_template and make the necessary changes. The changes made on this example were indicated in bold.

[Template]
Version=3
Directory=my_new_template\
Description=This is my new tempate, my first one.

[Preview]
TotalImages=7
Image1=preview1.gif
Image2=preview2.gif
Image3=preview3.gif
Image4=preview4.gif
Image5=preview5.gif
Image6=preview6.gif
Image7=my_new_template.gif

[Index]
Source=index.html
Output=index.html

[Cart]
Source=cart.html
Output=cart.html

[Intro]
Source=myintro.html
Output=intro.html

[Search]
Source=search.html
Output=search.html

[Info]
Source=info.html
Output=info.html

[Category]
Source=category.html
# use it for version 2.0 of template only
DisplayType=0

[Item]
Source=item.html
DisplayType=1
MaxItems=8
AllItemsOutput=allitems.html

[AdditionalPage]
TotalPage=3
Page1=SpecialItem.html
Page2=NewItem.html
Page3=disclaimerpage.html

[JavaScript]
StoreCreator=StoreCreator.cpp
Search=Search.cpp

In the above example, my_new_template.ini has specified:

  • my_new_template\ – The folder (directory) where you would place the template html files and images
  • description of my_new_template – ‘This is my new tempate, my first one.’ This description will be displayed in the dialog box when you
  • 4 additional preview images – presumably, the 7th image is the preview image for this my_new_template
  • myintro.html – the name of the html file (myintro.html) in the template folder (source) that provides the introduction message to the store, when published this file is transferred to the upload folder as intro.html (target).
  • under Item section, 8 itemsthe maximum number of items that will be displayed in the item page is 8 items
  • AdditionalPage (html files) to process is 3 – the optional additional pages to include in the final html files are the SpecialItem.html, NewItem.html, disclaimerpage.html. You will have to code these html files separately, remember to provide links to these files

<Step 2a> <Template introduction> <Next - Step 3>