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

Add class based on tag directly to img

Andre Allin

Mar 18, 2017 06:05AM EDT

Hi is there any chance to pass tag name to class of individual images ?

I have something like this, but it doesnt work at all, my class column is empty

<koken:include file="inc/header.lens" />
<div id="wrapper">

<koken:load source="contents">
<div class="grid">
<div class="imgwrap">

<koken:img class="{{ tag.title }}" />


{{ site.copyright }}

Up 0 rated Down


Mar 22, 2017 10:18AM EDT
I believe you need to wrap parts of your code with the <koken:tags> lens tag. Which complicates what you're trying to do. I do not have a working solution for you.


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