Support Center

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Assign a template as the front page

Assign a template as the front page

Last Updated: Aug 02, 2013 10:58AM EDT

By default, themes use the index.lens template to display the front page of a site. Publishers can always assign a different front page through the Site editor, but as a theme designer you have the option of excluding index.lens and assigning a different template as the theme's default front page. Here's how to do it.

Create templates

The first step is ensuring you have the necessary template in your theme to use as the front page. If you have an index.lens template in the folder you can go ahead and remove it.

Edit info.json

Open the info.json file you created for your theme and add a default_front_page member, followed by the name of the template minus ".lens". For example, if you wanted to use the albums.lens template as your front page, your markup would look like the following:

{
  "name": "Theme name",
  "version": "1.0",
  "description": "Theme description",
  "demo": "http://yoursite.com/demo",
  "author": {
  "name": "Your name",
    "link": "http://yoursite.com"
  },
  "default_front_page": "albums"
}

Save the info.json file and refresh your browser if you are viewing the Site editor. The albums index should now appear as the front page of the site preview.

support@koken.me
http://assets3.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete