Directory of Gallery 1, Gallery 2 and Gallery 3 Powered Websites - Submit Site
Highest Rated Gallery Site
Featured Gallery Site
Partner Sites
- HD Programming with Dish Network Satellite TV
- Boys Halloween Costumes
- Wholesale Cell Phones
- Removing Image Backgrounds
- Fourthirds Photography News
Photo Item Blocks - Treat Each One Individually
24 Jan 2008
Hello. First off, thanks for answering my last question! My apologies if my questions are overly simple - Smarty just isn't my strength. :-)
I'm almost done with my customizations. Only one problem...
I'm implementing DHTML tabs in my local photo.tpl to hold each item block (to maximize page space). For this to work as planned, I need to be able to embed each enabled item block individually.
Is there a way for me to "break out" each item block so that I can place it where I want(as opposed to the simple "foreach" loop that is now used)? Thanks again!



I assume that you are
I assume that you are talking about the following piece of code in the photo.tpl file:
{* Show any other photo blocks (comments, exif etc) *}{foreach from=$theme.params.photoBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}
My suggestion would be rather than the above foreeach loop that you will need to add each required block individually to wherever it is required in your template.
Take a look at Gallery2:Themes:Reference:Blocks
for further information on blocks.
There are also some examples of how to make blocks Gallery2:How To Create Blocks.