Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Moderated Pro PHP
|
Moderated Pro PHP This is a moderated forum for discussing advanced, professional level issues with PHP. Your posts will not appear until a moderator approves them. Posts that are not the right level for this forum will be responded to and you'll be asked to post them in the [url="http://p2p.wrox.com/sql-server-2000-20/9"]Beginning PHP[/url] forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Moderated Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2008, 04:46 PM
Authorized User
 
Join Date: Aug 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Generate SQL Script alongwith Data savan_thakkar SQL Server 2000 3 July 4th, 2006 01:52 PM
navigation nidheeshkayal ASP.NET 2.0 Basics 0 March 16th, 2006 07:05 AM
Generate SQL Script shaileshk SQL Server 2000 3 September 6th, 2005 03:12 PM
Navigation JonnyRPI HTML Code Clinic 1 July 6th, 2003 05:33 AM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.