Subject: how to insert { tag in template

Posted on: 26/02/15 07:45am
By: ivy

How can I insert {xxx} tag in template?

like this
PHP Formatted Code
<a href="" data-uk-lightbox="{group:'my-group'}">...</a>

see http://getuikit.com/docs/lightbox.html
now, {goup... is disappeard.

Re: how to insert { tag in template

Posted on: 26/02/15 07:56am
By: ::Ben

Ivy,

Try to add a space between { and content

PHP Formatted Code
<a href="" data-uk-lightbox="{ group:'my-group' }">...</a>

Re: how to insert { tag in template

Posted on: 26/02/15 09:58am
By: Laugh

Yeah that is the problem with using the curly brackets to define Geeklog template variables. Adding the space stops the template class from replacing what it thinks is a unused template variable with an empty string.

Re: how to insert { tag in template

Posted on: 10/03/15 04:36am
By: ivy

Thanks! It works correctly.

PHP Formatted Code
Try to add a space between { and content

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=95987