I'm struggling to figure a good way to do the following..
I have a directory structure like this
videos
|
Cat1----------Cat2---------cat3
file1 file1 file1
file2 file2
file3
I need to make one DIV with just the Catagories (I did that) but then for each catagory I need to make a seperat div named for the cat and an unorderd list of each file....
I know there must be an elegant way to code this but I can't seem to get my head around it.
it would look like this when done
<div id="catagories" class="cat page"
<ul>
<li><a href="#cat1">Cat1</a></li>
<li><a href="#cat2">Cat2</a></li>
</ul>
</div>
<div id="cat1">
<ul>
<li>cat1/file1</li>
<li>cat1/file2</li>
</ul>
</div>
etc.....
any suggestions?