Tuesday, 25 July 2017

Custom contents with html box pro - how to use it as a inline css background property?

Hello, we recently bought the htmlboxpro module from you and it's working good, but i have to place the created hook (which contains image url) to inline css background property and it's not working.


Exmaple:

<div style="background:#f0f0f0 url('{{hook::exec("HookimgURL") nofilter}|strip_tags:false}')" class="container-fluid">

Is it possible ? Thanks for reply.




Using html box pro as a css property

hello
the code you attached is wrong, it is incompatible with smarty standards,
try to use code below:
{hook::exec("HookimgURL")|strip_tags nofilter}

it should do the job. So the final code should be:

<div style="background:#f0f0f0 url('{hook::exec("HookimgURL")|strip_tags nofilter}')" class="container-fluid">

No comments:

Post a Comment