Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:syces:frontend:location:uploadmanager [2015/05/07 08:45]
co
en:syces:frontend:location:uploadmanager [2019/03/14 10:07] (current)
bb [Directory Structure for Terms and Conditions]
Line 1: Line 1:
 ====== Upload Manager ====== ====== Upload Manager ======
-The upload manager is basically meant to allow the upload of custom templates to all locations or specific locations. In order to use uploaded templates you need to activate Layout:custom for the corresponding locations and vice versa. (See Walled Garden Options)+The upload manager is basically meant to allow the upload of custom layout templates to all locations or specific locations. In order to use uploaded templates you need to activate Layout:custom for the corresponding locations and vice versa. (See  [[en:syces:frontend:client:client#smstrade_credentials_optional|Client Module > smstrade credentials]])
  
 ===== Left part of screen: Basic File Manager ===== ===== Left part of screen: Basic File Manager =====
Line 13: Line 13:
   * add directories to your home directory,   * add directories to your home directory,
   * add, rename and delete subdirectories of your home directory,   * add, rename and delete subdirectories of your home directory,
-  * delete and rename files and +  * delete, download and rename files and 
   * unzip zip-files   * unzip zip-files
      * to current directory      * to current directory
      * to directory for all locations (unpacked in folder 'captiveportal' which will be created if necessary)      * to directory for all locations (unpacked in folder 'captiveportal' which will be created if necessary)
-     * to directory of current location (into folder captiveportal/location number, both beeing created if necessary) +     * to directory of current location (into folder captiveportal/location number, both being created if necessary) 
  
 ===== Right part of screen: Upload form ===== ===== Right part of screen: Upload form =====
  
-On the right part of the screen you may upload one or more files to the last chosen directory on the left. There is a restriction of currently 10 MB total upload volume not including the logo image, your Terms and Conditions and PDF and CSV files containing user credentials. +On the right part of the screen you may upload one or more files to any directory within your Home directory. There is a restriction of currently 10 MB total upload volume not including the logo image, your Terms and Conditions and PDF and CSV files containing user credentials. 
  
 You may upload files with the following data types: html, tpl, css, png, jpg, jpeg, gif, zip. You may upload files with the following data types: html, tpl, css, png, jpg, jpeg, gif, zip.
  
-===== Directory Structure for Custom Templates  =====+===== Directory Structure for Custom Layout Templates  =====
  
-Custom templates always reside in a folder called 'captiveportal'. If you need to distinguish templates for different locations you have to add subfolders for these locations and upload the template there. Name the folder like the last number that you can see in the corresponding walled garden page link. ( **Walled Garden** (https://.../../190/)). Location specific templates supersede general templates.+Custom layout templates always reside in a folder called 'captiveportal'. If you need to distinguish templates for different locations you have to add subfolders for these locations and upload the template there. Name the folder like the last number that you can see in the corresponding walled garden page link. ( **Walled Garden** (https://.../../190/)). Location specific templates supersede general templates.
  
 Example: Example:
Line 35: Line 35:
  
 Please make sure that the template name is hotspot.tpl and all references like images within hotspot.tpl are preceded by {TPLDIR}. For further information please see  [[en:syces:selfserviceportal:custom_templates]] Please make sure that the template name is hotspot.tpl and all references like images within hotspot.tpl are preceded by {TPLDIR}. For further information please see  [[en:syces:selfserviceportal:custom_templates]]
-     + 
-     +===== Directory Structure for Terms and Conditions  ===== 
 + 
 +Default Terms and Conditions can be uploaded in the client module and are renamed automatically to 'agb.html'. They reside in your home directory. If you need to customize Terms and Conditions for different locations and / or languages you need to create an additional agb directory and name all files 'agb.html' and "dse.html" for the privacy policy. Location specific Terms and Conditions need to be placed in directories named like the location id. As a general rule for the order Terms and Conditions are chosen keep in mind that location specific is more important than language specific. If the most specific file isn't available (location plus language) then the default location file will be displayed, else the default language file, else the default file. 
 + 
 +**Example Directory Structure:** 
 +\\ Default: /agb/agb.html: (this will override any standard Home/agb.html; wenn missing then standard Home/agb is used) 
 +\\ Default englisch     : /agb/en/agb.html 
 +\\ Location 123         : /agb/123/agb.html 
 +\\ Location 123 italian : /agb/123/it/agb.html 
 +\\ Location 124 english: /agb/124/en/agb.html 
 + 
 + 
 +\\ Default: /dse/dse.html: (this will override any standard Home/dse.html; wenn missing then standard Home/agb is used) 
 +\\ Default englisch     : /dse/en/dse.html 
 +\\ Location 123         : /dse/123/dse.html 
 +\\ Location 123 italian : /dse/123/it/dse.html 
 +\\ Location 124 english: /dse/124/en/dse.html 
 + 
 + 
 +**Examples for above:** 
 +\\ Location 125, language = en =>  /agb/en/agb.html (no location folder found) 
 +\\ Location 125, language = de =>  /agb/agb.html    (no location folder found) 
 +\\ Location 123, any language except it =>  /agb/123/agb.html  (default location folder) 
 +\\ Location 123, language = it =>  /agb/123/it/agb.html  
 +\\ Location 124, language = de  =>  /agb/agb.html  (no default within location folder) 
 +\\ Location 124, language = en  =>  /agb/124/en/agb.html   
 + 
 + 
 +\\ Location 125, language = en =>  /dse/en/dse.html (no location folder found) 
 +\\ Location 125, language = de =>  /dse/dse.html    (no location folder found) 
 +\\ Location 123, any language except it =>  /dse/123/dse.html  (default location folder) 
 +\\ Location 123, language = it =>  /dse/123/it/dse.html  
 +\\ Location 124, language = de  =>  /dse/dse.html  (no default within location folder) 
 +\\ Location 124, language = en  =>  /dse/124/en/dse.html   
 + 
 + 
 +===== Directory Structure for SMS Templates  ===== 
 + 
 +SMS templates always reside in a folder called sms. They must be called **sms.tpl** or **sms-<location number>.tpl**, if you want them for specific locations only. If you want to distinguish between languages, create language subfolders like Home/sms/it for italian or Home/sms/pt for portuguese.  
 + 
 +For creating sms templates see  [[en:syces:customizing:sms]]. 
 + 
 +Example: 
 +\\ Home/sms/sms.tpl: valid for all locations and languages if not superseded by more specific templates 
 +\\ Home/sms/sms-111.tpl: valid only for location 111 
 +\\ Home/sms/it/sms-111.tpl: valid only for location 111 and italian language  
 + 
 +When no appropriate template can be found the default template is used. 
 +<note tip>For testing create a language subfolder (de, en, it, fr, pt, nl, es) that will probably not be needed and place your template there, then use the preview option in [[en:syces:selfserviceportal:self_service_portal#other_options|Preview SMS]]. When you don't need it anymore just delete the template or rename the folder</note>
  
QR Code
QR Code Upload Manager (generated for current page)