I have (again) got into difficulties trying to use folders and subfolders in conjunction with site navigation. I have tried for a long time to get this sorted out and have referenced previous postings here on the forum but have only got into a deeper mess as time has gone on! I don't really have any sensible code to post. If I describe what I am trying to achieve perhaps some kind person could help me out!
There are categories of art with sub-categories e.g. paintings with sub-categories of watercolours and publications. Paintings = a parent folder and watercolours and publications = sub-folders of Paintings.
So something like this:
paintings
- watercolours
- publications
sculpture
- life
- abstract
craft
- ceramics
- jewellery
installations
projects
- film
- community
There may be a folder without children e.g. installations.
In the main navigation there will be a link called WORK which has a dropdown menu with the parent folders listed:
i.e. click on WORK and a dropdown menu shows:
PAINTINGS
SCULPTURE
CRAFT
INSTALLATIONS
PROJECTS
Click on PAINTINGS from within this dropdown menu and the page should show the heading 'PAINTINGS' along with sub-navigation links of the child folders of PAINTINGS - as shown in the mockup. The listing by default would show the contents of the first child folder i.e. WATERCOLOURS. Click on PUBLICATIONS and the contents of that child folder would be displayed.
Select INSTALLATIONS from the WORK dropdown menu and the contents of that parent folder (no children) will be displayed.
I cannot fathom how to achieve this - am ready to give up and think of some other way of doing this, but folders seems like a good way to structure the site ... help please?!
There are categories of art with sub-categories e.g. paintings with sub-categories of watercolours and publications. Paintings = a parent folder and watercolours and publications = sub-folders of Paintings.
So something like this:
paintings
- watercolours
- publications
sculpture
- life
- abstract
craft
- ceramics
- jewellery
installations
projects
- film
- community
There may be a folder without children e.g. installations.
In the main navigation there will be a link called WORK which has a dropdown menu with the parent folders listed:
i.e. click on WORK and a dropdown menu shows:
PAINTINGS
SCULPTURE
CRAFT
INSTALLATIONS
PROJECTS
- Code: Select all
<cms:folders masterpage='work.php' orderby='weight' hierarchical='1' depth='1'>
<li><a href="<cms:show k_folder_link />"><cms:show k_folder_title /></a></li>
</cms:folders>
Click on PAINTINGS from within this dropdown menu and the page should show the heading 'PAINTINGS' along with sub-navigation links of the child folders of PAINTINGS - as shown in the mockup. The listing by default would show the contents of the first child folder i.e. WATERCOLOURS. Click on PUBLICATIONS and the contents of that child folder would be displayed.
Select INSTALLATIONS from the WORK dropdown menu and the contents of that parent folder (no children) will be displayed.
I cannot fathom how to achieve this - am ready to give up and think of some other way of doing this, but folders seems like a good way to structure the site ... help please?!