geturl and templates.

j2

Joined: 2003-02-17
Posts: 3
Posted: Mon, 2010-08-02 21:53

Hello!

I hope this is the apropriate forum.

I've looked over the docs, but I cannot find if what I want is possible or not.
I would like to modify getURL with another set of URL-type (that was easy).. But i would like to show this block ONLY if the width of the object is >650px.
Is it possible to pull the size from a var?
something like

{if $horizontalsizeofpicture > 650}
<p class="gbDescription">
[...]
</p>
{/if}

Possible?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-08-02 23:13

Have you put Gallery into buffered debug mode and taken a look at the Smarty debug popup window?
FAQ: How to set/use Gallery in debug mode?

There is a variable for the width
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
j2

Joined: 2003-02-17
Posts: 3
Posted: Tue, 2010-08-03 03:55

*doh*

I knew smarty had a debug mode.
I knew Gallery had a debug mode.

Why didn't I connect those dots? :)

Anyway, modifications complete and working nicely. Thanks!