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">
Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment