Active
Project:
Danland
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2011 at 07:44 UTC
Updated:
29 Oct 2011 at 07:44 UTC
Would you be willing to change your page.tpl.php file to dynamically pull the file names out of the slideshows folder? It would just be adding something similar to the code below in place of the hardcoded img's.
<div class="slideshow">
<?PHP
$count=0;
if ($handle = opendir('./sites/all/themes/danland/images/slideshows')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") { ?>
<img src="<?php print $base_path . $directory ."/images/slideshows/". $file; ?>" width="950" height="355" alt="slideshow <?=$count?>"/>
<? $count++; }
}
closedir($handle);
}
?>
</div>
What do you think?