Here is what I am trying to do.
I only need the first image to be displayed in an album. Which I have done so far by changing the default.tpl to this
Code: Select all
{assign var=picCounter value=0}
{if $pictureid !=0}
{* Big Picture *}
<div style="text-align:center">
<p class="bigpicturecaption"><strong>{$picture->name}</strong><br />
{$picture->comment}<br />
<span class="bigpicturenav">
{if $link.picture.previous}<a href="{$link.picture.previous}" title="Previous picture">< Previous</a>{/if}
<span class= "albumpicturecount">( Picture {$picturenumber}/{$picturecount} )</span>
{if $link.picture.next}<a href="{$link.picture.next}" title="Next picture">Next ></a></span>{/if}
</p>
<img src="{$picture->picture}" alt="{$picture->name|escape:'html'} title="{$picture->name|escape:'html'} />
</div>
{/if}
{* End Big Picture *}
{* Display Album*}
<div class="image_block">
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
{if $picCounter==0}{assign var=picCounter value=1}
<div>
<a href="{$onepicture->picture}" rel="lyteshow[{$album->name|escape:'html'}]">
<img src="{$onepicture->thumbnail}" {$onepicture->autothumbnailsize} /></a>
</div>
<div class="info">
<h3>{$album->name}</h3>
{$album->comment}
</div>
{else}
<div style="display:none;" ><a href="{$onepicture->picture}" rel="lyteshow[{$album->name|escape:'html'}]" > </a>
</div>
{/if}
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
</div>
Now I can display the ablums like so
Code: Select all
{cms_module module='album' albums='1'} {cms_module module='album' albums='3'}
I would like to be able to assign an album to a category and hard code the tag into the template. That way the client only has to modify the albums.
I have tried to use
Code: Select all
{cms_module module='album' categories='3'}
Sorry if I am going about this the wrong way, but like I said, I am code hack.

Thanks,
Josh