RSGallery2 Support Forums

RSgallery2 support forums => Display and Templates => Topic started by: Markus on March 31, 2008, 03:41:21 am



Title: Change view
Post by: Markus on March 31, 2008, 03:41:21 am
Need some help...

I'm using the simple template and I need to change it to show all subgalleries and not the "Gallery thumbnail"

The code:
Code:
<?php
defined
'_VAL ID_MOS' ) or die( 'Restricted Access' );
?>

galleries
<h2><?php echo $this->gallery->name?></h2>
<?php foreach( $this->gallery->kids() as $g ): ?>
<div style='width:100%;'>
<h2><?php echo $g->name?></h2>
<?php echo $g->thumbHTML?>
<p><?php echo $g->description?></p>
</div>
<?php endforeach; ?>

this will show one random image... I want it to show all subgalleries