Ok, this is quite complicated. I created a function which selects the subalbums based on 'parentID' and puts them in a list. For now, I've tested with a static parentID. This works.
What I need is to pass the ID from a mainalbum (where parentID=NULL) listed on the indexpage to the albumpage. Something like :
`[list]
<?php while (next_album()): ?>
[*]Houses
<?php endwhile; ?>
[/list]`
On the albumpage, I capture the ID, run a query through the subalbums, based on this and, I get a list of the subalbums in this mainalbum.
I know mod_rewrite will be fucked up, but I'm not planning to use it.
I can't seem to capture the ID of the parentalbums, however.
This is driving me nuts. Some help would be very appreciated!