generate navigation script
Hi guys
Im writing a flat file php cms and ive run into trouble.
Each page that gets created has its filename written into a text file which is seperated by a special character, this way the textfile can be read and then have the data exploded to create a navigation. Bit like this...
<.>filename<,>page title<,>folder name<.>filename<,>page title<,>folder name<.> etc etc
Trouble is im finding it difficult organising files into folders. At the moment pages are looped through and written out, which works fine when the pages are all in the root of the folder. However im trying to add some functionality whereby pages can be ordered in the nav. Pages in the folders will appear as sub-pages, so to order these they need to grouped as one.
Therefore i need to write a script that first organises the files into their folder and then allows the user to set the order they wish the pages to appear in the nav.
I realise this is very vague, its harder to explain than i thought.
If anyone half understands what im going on about, some pointers would be great.
Cheers, Will
|