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">
<koken:loop>
<div class="imgwrap">

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

</div>
</koken:loop>
</div>
</koken:load>

</div>
<footer>
{{ site.copyright }}
</footer>
</body>
</html>

Up 0 rated Down

Kenth

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.

See:
http://help.koken.me/customer/en/portal/articles/828690-lens-tags#kokentags

This question has received the maximum number of answers.

support@koken.me
http://assets1.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