Support Center

Recent questions

About Koken

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

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Can't seem to get Pillar working in (Elementary based) custom theme

Chris Rault

Oct 01, 2014 07:45AM EDT

Hi guys,

I've followed the instructions in the Using Pillar docs verbatum, but I can't seem to get it working.

The js error I am getting is:
Uncaught ReferenceError: $K is not defined pillar.js?0.18.2:1
Uncaught TypeError: object is not a function

Here is a pastie of my contents.lens file:

Any ideas?


Up 0 rated Down


Oct 03, 2014 07:40AM EDT
Managed to get it working :) The instructions seemed to indicate that the <koken:asset file="pillar.js" common="true" /> should be within the <koken:head></koken:head>, but it only works when just outside the head tag.
Up 0 rated Down

Todd Dominey Koken Agent

Oct 07, 2014 05:18PM EDT

Chris – ah, I think that was the problem then. In the instructions we were referring to the standard HTML ‘head’ tags, not the koken:head template tag, which is used to inject data into the page after the page data has loaded. So you can add that pillar.js reference either to the general ‘head’ area (if it’s an include or something you load globally) or you could insert it somewhere in the body region if only used in a particular template.

Hope that helps!

Up 0 rated Down


Oct 08, 2014 02:12AM EDT
Thanks for clarifying Todd!

I'm really loving Kokens templating system - everything is so clean, concise and really easy to pickup :)

Up 0 rated Down

Todd Dominey Koken Agent

Oct 08, 2014 12:01PM EDT

Thanks. Appreciate it. :)

This question has received the maximum number of answers.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found