[thelist] file structure for multi-level site

Chris Johnston fuzzylizard at gmail.com
Fri Jan 14 23:09:51 CST 2005


On Fri, 14 Jan 2005 17:13:48 -0500, Bruce Gilbert <webguync at gmail.com> wrote:
> I need help in setting up my file structure for a large mult-level
> site. What I am needing is this:
> 
> I have 6 main 'parent pages' with child pages and their child pages
> etc. I need the url path to state sitename/parentpage/childpage etc. I
> am also using a breadcrumb script that will base the output on the
> directory file structure. Right now I have an index.htm and 6
> parent.htm files at the root level and I have 6 folders (named after
> the parent pages) inside the root directory and within those folders
> go the respective child pages.
> 
> When I click on a breadcrumb link to get to a parent document I get a
> 'you are not allowed to view this page' error (in IE) and also taking
> out the /childpage to get to the parent page in the address bar eg:
> http://sitename/parentpage/childpage will give you the same error.
> 
> basicly what I am needing is to set it up to get back to a parent page
> both from breadcrumbs and the address bar.
> 

Not totally sure what you are asking, but would the following not work:

/ root
| --- index.htm
| --- / parent1
      | --- index.htm
      | --- / child1
           | --- index.htm
      | --- / child2
           | --- index.htm
| --- / parent2
      | --- index.htm
      | --- / child1
           | --- index.htm
      | --- / child2
           | --- index.htm

This would certainly give you the file structure that you want and
most scripts that use file structures to generate the breadcrumb trail
would be able to follow this. It does make for a lot of folders
though, but it is well organized.

(Each forward slash '/' represents a directory)

-- 
chris johnston

www.fuzzylizard.com

"For millions of years, mankind lived just like the animals and
something happened which unleashed the power of our imagination, we
learned to talk."
Pink Floyd


More information about the thelist mailing list