Key: WebShop ConditionFileName

From Catglobe Wiki
Revision as of 11:05, 9 February 2012 by Cg pham (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<accesscontrol>Main:MyGroup</accesscontrol> 

Key: WebShop_ConditionFileName

Syntax

<add key="WebShop_ConditionFileName" value="[FileName]"/>

[FileName]: Part of the name of the HTML file holding the terms and conditions for shopping on the site.

Purpose

The "{0}" part of the an HTML file called "{0}_{1}.html". There may in other words exist multiple files that will be recognized by this key; they will all share {0} as part of their name, whereas the second part {1} will differ. {1} will refer to the iso code of the language in which the HTML file is written (e.g. da-dk). The system will try to find the file that corresponds to the language that the user is logged in with and then try to find the relevant 'rules and regulations' file using these information. If it cannot find such a file corresponding to the language of the logged in user then it will look at the key called "Webshop_ConditionFileNameDefault" to find out which page it ought to use instead.

Example of key

<add key="WebShop_ConditionFileName" value="Condition.html" />

<!-- Result of this value, if logged in user is from Denmark, will be that the system will look for a file called "/catalogue/conditions/Condition_da-dk.html -->