This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:howto:open_with_default_template [2017/07/19 10:13] Nicolas Ronvel created |
en:howto:open_with_default_template [2017/07/19 10:18] (current) Nicolas Ronvel |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Open Geckos with a default template ====== | ====== Open Geckos with a default template ====== | ||
- | See also [[Issue #112|https://github.com/Gulix/geckos/issues/112]] ... | + | See also [[https://github.com/Gulix/geckos/issues/112|Issue #112]] ... |
When launching Geckos, by default, no template is loaded. You have to select a template and load it. | When launching Geckos, by default, no template is loaded. You have to select a template and load it. | ||
You can specify, in the launching URL, a template to be loaded by default. You need to add a parameter to the Geckos URL : http://gulix.github.io/geckos/?default_template=key | You can specify, in the launching URL, a template to be loaded by default. You need to add a parameter to the Geckos URL : http://gulix.github.io/geckos/?default_template=key | ||
+ | |||
+ | The ''key'' parameter is the key of the template you want to load. To retrieve this key, check the template description and find the key parameter : | ||
+ | |||
+ | <code javascript> | ||
+ | "description": { | ||
+ | "description": "Template for playing with colors !", | ||
+ | "title":"Arabesque", | ||
+ | "key": "arabesque", | ||
+ | "credits": "by Nicolas Ronvel", | ||
+ | "url": "https://github.com/Gulix/geckos/" | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | In this example, the key is ''arabesque'', and the url to load this template by default is http://gulix.github.io/geckos/?default_template=arabesque |