The syntax files.ini Print

  • 0

In the root folder of style must be a file files.ini. It is used to make a list of the files in the Administration Panel (Advanced Edition) and „evaluation of”, the style has been modified.

The file consists of five sections:

  • [box_list] - template files, modules folder /boxes
  • [tpl_list] - template files, folder /scripts
  • [css_list] - style sheets, folder /styles
  • [js_list] - scripts JavaScript, folder /js
  • [img_list] - image files, folder /images

Within each section are described the files according to the standard:

    0.file
    =
    ""
    0.path
    =
    ""
    0.desc
    =
    ""
    0.md5
    =
    ""
    1.file
    =
    ""
    1.path
    =
    ""
    1.desc
    =
    ""
    1.md5
    =
    ""
    2.file
    =
    ""
    2.path....
  • file - the name of the file
  • path - a subfolder in which it is located, or blank
  • desc - description of the contents of the file, or blank
  • md5 - checksum file

The sample box.tpl located in the Menu and main.css:

    [box_list]
    
    0.file
    ="box.tpl"
    0.path
    ="Menu"
    0.desc
    ="The cube menu"
    0.md5
    ="5fda60638b5ad161e65d48ef969295e6"
    [css_list]
    0.file
    ="main.css"
    0.path
    =""
    0.desc
    ="The main style"
    0.md5
    ="daf61df65a7c98bb02fb09d0d9249f1c"
    0.main
    = 1

In the above code the css file has an additional parameter main = 1. It implies that the file is the main style sheet and is displayed in the admin under option „Show me the original style sheet”. Only one file CSS can be set to main = 1.

There are 3 options for image files:

  • logo = 1
  • background = 1
  • favicon = 1

Each of these options must be assigned to a single file. This allows the application to locate the file sequence logos, backgrounds and icons. As a result, these files can later be replace multiple using the Administration Panel.

MD5 files are used to determine if a style has been modified by the administrator. Appropriate warning is then displayed in the Gallery of styles. Manually modify files may prevent the automatic update, which in the case of larger changes in templates threatens to unstable operation of the store.


Was this answer helpful?

« Back