Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:syces:selfserviceportal:custom_templates [2014/04/30 12:09] co |
en:syces:selfserviceportal:custom_templates [2016/09/27 13:00] (current) co |
||
---|---|---|---|
Line 5: | Line 5: | ||
- | There are 2 types of custom templates: | + | There are 4 types of custom templates: |
- | * those that use the normal Template (hotspot.tpl) and its functionalities, | + | |
- | * those that may provide even more flexibility and also supply the complete functionality for the sending of the required forms | + | |
- | Whereas the first type can be used for all kinds of walled garden registration methods, the second | + | * **index.html**: |
+ | * **hotspot.tpl**: | ||
+ | * **custom_anonym.tpl**: | ||
+ | |||
+ | Whereas the hotspot.tpl | ||
* custom_oneclick.tpl | * custom_oneclick.tpl | ||
* custom_paypal.tpl | * custom_paypal.tpl | ||
Line 16: | Line 18: | ||
At the moment we only support custom_anonym.tpl. | At the moment we only support custom_anonym.tpl. | ||
+ | |||
+ | * **custom_token.tpl**: | ||
+ | |||
===== Process for the installing of custom templates ===== | ===== Process for the installing of custom templates ===== | ||
Line 31: | Line 36: | ||
There are some extra template variables that you may use, if you want: | There are some extra template variables that you may use, if you want: | ||
- | {TITLE} : default title | + | {TITLE} : default title \\ |
- | {CSS} : | + | {CSS} : |
- | Sie können natürlich andere Stylesheet(s) einbinden | + | if you name your stylesheet ticketstyle.css it will be found by this variable, but of course you may add other stylesheets or use another name \\ |
- | {DATE} : | + | {DATE} : |
- | {VERSION} : Software-Version | + | {VERSION}: Software Version\\ |
- | {LANGSWITCH}: | + | {LANGSWITCH}: |
- | {LOGO} : | + | {LOGO} : |
- | {ERROR} : | + | {ERROR} : |
- | {LOGINTITLE}: | + | {LOGINTITLE}: |
- | {REGISTERTITLE} | + | {REGISTERTITLE} |
+ | {AGB}: link to agb.html, a file containing your Terms and Conditions; you may have agb.html files for different locations and different languages. Please check what the [[en: | ||
+ | Any files you use (images, CSS etc.) should have a {TPLDIR} as a prefix to get the right path to your template folder, e.g. <img src=" | ||
- | The customer sends a zip file containing all required files like images, | + | If you want to offer templates in several languages you must create one subfolder for each language and place the templates in the subfolders: {TPLDIR}< |
- | It is possible to use the template for all locations of that customer or specific ones. | + | For uploading your files please |
To finally activate the custom template you have to choose " | To finally activate the custom template you have to choose " | ||
Line 109: | Line 116: | ||
===== custom_anonym.tpl (minimum requirements) | ===== custom_anonym.tpl (minimum requirements) | ||
- | This template can be used for the most flexible custom layout. You need to provide a form with a field named " | + | This template can be used for the most flexible custom layout. You need to provide a form with a field named " |
< | < | ||
< | < | ||
Line 130: | Line 136: | ||
</ | </ | ||
<!-- END BODY --> | <!-- END BODY --> | ||
+ | </ | ||
+ | </ | ||
+ | Please be aware that any template variables need to be placed within either the head or the body section. The example above needs at least one more template variable e.g. {DATE} within the body section in order to get the body section displayed. | ||
+ | Else use the following code if you only have the {LOGIN} variable: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <!-- BEGIN HEAD --> | ||
+ | < | ||
+ | {SCRIPTS} | ||
+ | </ | ||
+ | <!-- END HEAD --> | ||
+ | |||
+ | <body onload=" | ||
+ | |||
+ | < | ||
+ | {LOGIN} | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
</ | </ | ||
</ | </ | ||
Line 190: | Line 223: | ||
a: | a: | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== How to install user provided custom templates (done by Synergy Systems GmbH) ===== | ||
+ | |||
+ | You need to be logged in to see this information. | ||
+ | < | ||
+ | We should always test on our development system before installing on the live system. When everything is okay we can copy the whole testfolder contents to the custom folder on the live system. This is either | ||
+ | / | ||
+ | |||
+ | Possible subfolder structure to / | ||
+ | |||
+ | /locationid | ||
+ | |||
+ | /lang | ||
+ | |||
+ | / | ||
+ | |||
+ | It may be necessary to add a .htaccess file to the captiveportal folder, e.g. when there is a download link to a terms-and-condition.pdf, | ||
+ | |||
+ | Howto' | ||
+ | |||
+ | - copy the unzipped files into the captiveportal test folder, this is currently custom/ | ||
+ | - rename the template file to hotspot.tpl (check against minimum requirements) or custom_xx.tpl (also check form field names, add hidden vars..), depending on the type of custom template | ||
+ | - control all paths, add {TPLDIR} whereever necessary | ||
+ | - change rights e.g. for pictures if necessary | ||
+ | - try to register and to login using the custom template (change layout to custom, choose correct registration type) | ||
+ | - if autologin fails it is probably, because {LOGIN} is missing | ||
+ | - move files to appropriate custom folder on live system, create .htaccess for this folder if necessary | ||
+ | - test at least the display (in location open new tab using walled garden link) | ||
+ | |||
+ | |||
+ | Example .htaccess: | ||
+ | < | ||
+ | < | ||
+ | Order Allow,Deny | ||
+ | Allow from All | ||
+ | </ | ||
+ | </ | ||
+ | </ |