RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 22, 2008, 02:31:23 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Change view
Advanced search
  « previous next »
Pages 1
Author
Topic: Change view  (Read 1635 times)
« on: March 31, 2008, 03:41:21 am »
Markus Offline
Newbie
*
Posts: 14

View Profile Email

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
Logged
 
Print  Pages 1
« previous next »
Jump to: