| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Folder structure..........Help
A friend and myself have started working together on some sites and something we're finding difficulty with is agreeing about folder structure under the root.
We need to use exactly the same structure to avoid confusion and we're not sure which way to go. One of us likes to have an empty root except for default.asp and then separate folders for images, stylesteets, scripts, pages, includes, etc. Any pages such as boats.asp; cars.asp; contactus.asp and links.asp etc. would be under the folder called 'pages'. If the page called cars.asp (which will be under the 'pages' folder), has to lead to (say) 10 pages about specific cars, a sub folder under 'pages' called 'cars_specific' would be created to contain them. Any image folders needing to be seperated, such as 'images_boats' and 'images_cars' would be sub-folders of the 'images' folder. The other one of us prefers to have all the main pages such as default.asp; boats.asp; cars.asp; contact_us.asp and links.asp etc. directly under the root. the normal folders such as images, stylesteets, scripts, includes, etc. would also be under the root but......... If the main page called cars.asp will need to lead to (say) 10 pages about cars, a folder would be created directly under the root called 'cars_specific' and those 10 pages would go inside the 'cars_specific' folder. Any image folders needing to be seperated such as 'images_boats' and 'images_cars' would be created directly under the root If anyone would be kind enough to give us the benefit of their experience on which way we should go we really would be very grateful. Thanks guys.......... Brian.
__________________
Try to look unimportant. The enemy may be low on ammo. |
|
#2
|
||||
|
||||
|
depending on the site i tend to use the first option, i feel all images should be in a central place and withing the images folder u can have sub folders ie home, cars etc.
as for the build files (asp,html) if thier are alot of pages per section as u said 10 for cars etc i would pop thise in a folder along with the main car page so that thier easy to locate. If its a single page lets say contact or something like that i sit that with the index.asp as it is only one page and id not going to get too confusing. basically my tip is to make the site by yourself or someone else as easy to understand where all the files are dont make it too complicated try to keep full sections togther if there large. Cheers |
|
#3
|
||||
|
||||
|
I build my sites differently, of course, I use Visual Studio rather than Dreamweaver thesedays, so my structure is different (and I usually navigate my work using the Class View, rather than Solution/File View)
Anyway, for the compiled versions, I usually lay them out like this: Code:
/root -/bin/ (put assemblies in here) -/styles/ (put style folders in here) --/style1/ (style.css and style-relevant assets go in here) --/style2/ (alternative style.css and style-relevant assets go in here) -/assets/ (non-style related assets, such as logos, diagrams, photos, etc) As for the content pages, I arrange them according to the application. But if I'm using URL rewriting of some sort, then I usually arrange them in an object-orientated way. Consider this CMS I was writing earlier this year: Code:
/root -/bin/ -/styles/ --/Organic/ --/C9/ --/FMSDN/ -/assets/ -/pages/ --/Users/ ---/Add.aspx ---/Edit.aspx ---/View.aspx --/Items/ ---/Add.aspx ---/Edit.aspx ---/View.aspx --/Foo/ ---/Add.aspx ---/Edit.aspx ---/View.aspx |
|
#4
|
||||
|
||||
|
Thanks guys for your input.
It's been most helpful. ![]() |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Folder structure..........Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|