Hi,
I would like to bring to such a situation, so I can decide which side will display the image (float:left or float:right).
My template code (for single image):
<a class="single" style="float:XXX" href="{$image->file|escape:'url'|replace:'%2F':'/'}" title="{$image->title}" rel="prettyPhoto"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->title}" /></a>
Into the content I put:
{Gallery dir='Gallery' img="64" XXX="left"}
Of course it dosen't work - I was missing something, but I do not know what. If anyone can help?
Gallery module - custom param.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Gallery module - custom param.
You can't call a module with custom parameters like that. it's designed to discard whatever it doesn't understand.
However, you can set a variable into smarty, and then call the module, and use your custom variable inside the module's templates.
i.e:
.... then in your gallery template you can use that variable.
However, you can set a variable into smarty, and then call the module, and use your custom variable inside the module's templates.
i.e:
Code: Select all
{$mycustomvar=1}
{Gallery dir=Gallery img=64}
Code: Select all
{if isset($mycustomvar) && $mycustomvar == 1}
{* do something *}
{else}
{* do something else *}
{/if}Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Gallery module - custom param.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Gallery module - custom param.
Thanks to you guys, this is not my perfect solution but better than none such. The solution proposed by calguy1000 works fine.


