Has anyone already made or has some good thoughts on how to make a side navigation that follows the albums? So far I have made a UDT that reads the first level albums and creates a sub-navigation, but I need to make it work for all levels.
Here's the example site: http://sinnbilder-schmidt.de.www103.nur ... otografie/
Gallery-based side navigation
Re: Gallery-based side navigation
I didn't work out the PHP, but have done something similar using scandir() and readdir() for a parent directory. So, maybe loop through the parent Gallery directory and set everything into a list.
I'm not sure that will be recursive but maybe get you started.
Code: Select all
$files = array();
$dir=opendir("uploads/images/Gallery");
while(($file = readdir($dir)) !== false) {
if($file !== '.' && $file !== '..') {
$files[] = $file;
}
}
closedir($dir);
for($i=0; $i<count($files); $i++) {
if($files[$i] != ".htaccess" && $files[$i] != "index.php")
echo '<a href="uploads/slides/'.$files[$i].'">'.$files[$i].'</a>;
}"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--


