Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> File Management

This is a discussion on File Management, within the Web Design in General section. This forum and the thread "File Management" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> File Management
thewal
post Apr 24 2008, 02:33 PM
Post #1


Squeezing
***

Group: Members
Posts: 70
Joined: 14-February 08
From: Dublin, Ireland
Member No.: 107



Hi folks,

A question on file management, and which is the best way of doing it.

Should I have a seperate folder for each web page and then in each of these, folders for images and anything else associated with the page.

Or, should I have all pages in one folder and all images in another, etc.

Also, depending on which way is best, where should the css file go? In a folder of its own, or at the start of the tree along with all the other files??

Or is it just a matter of your own preferance in which way that you are used to doing your own file management.

At the moment, I am kind of using both methods, so I would like to know which way you guys think is the best.

Thanks


--------------------
Finally squeeezin!!!!
Go to the top of the page
 
+Quote Post
rewake
post Apr 24 2008, 03:10 PM
Post #2


Rapid Squeezer
****

Group: Mentor
Posts: 223
Joined: 14-February 08
From: NY, USA
Member No.: 127



Hi,

Well it's really a matter personal preference. It sounds like having a separate folder for each page would be really complex to manage, but then I've never done it this way. Here's my typical directory structure that I use....

CODE
/ (root)
- images
- - icons
- - headings
- - buttons
- - etc
- includes (typically any php classes/scripts/libraries)
- css
- js


I do change things around from site to site depending on the IA of the site.

Hope this helps!
Rich


--------------------
QUOTE
if ($name=='will') echo '/(bb|[^b]{2})/';

Raineri Jewelers | MySpace | Facebook | deviantART
Go to the top of the page
 
+Quote Post
thewal
post Apr 24 2008, 03:19 PM
Post #3


Squeezing
***

Group: Members
Posts: 70
Joined: 14-February 08
From: Dublin, Ireland
Member No.: 107



Hi Rich,

This is the way I normally do it, but I am doing a redesign of a site for a guy in work at the moment and he asks a million questions. I want to have myself covered when I am exlpaining my structure to him.

Wal


--------------------
Finally squeeezin!!!!
Go to the top of the page
 
+Quote Post
karinne
post Apr 24 2008, 05:57 PM
Post #4


Co-Founder
*******

Group: Co-Founders
Posts: 2,799
Joined: 13-February 08
From: Squeezin'
Member No.: 2



I do the same as Rich.


--------------------
The Squeeze Store is now OPEN! Come on in and grab something!

a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter
The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN!
Go to the top of the page
 
+Quote Post
Linda
post Apr 24 2008, 08:22 PM
Post #5


Co-Founder
*******

Group: Co-Founders
Posts: 2,776
Joined: 13-February 08
From: Pink House in USA
Member No.: 3



QUOTE (karinne @ Apr 24 2008, 05:57 PM) *
I do the same as Rich.

I do almost the same as Rich. I'm not quite as organized and sometimes if it's a small site I might just lump everything together.
However each different business gets it's own folder.
Inside that I break it into sub folders.

If I do a redesign, I add folders such as 2008css, 2008js, 2008icons, etc.
That way I always have the old stuff separated from the new stuff.


--------------------
Go to the top of the page
 
+Quote Post
thewal
post Apr 25 2008, 05:22 AM
Post #6


Squeezing
***

Group: Members
Posts: 70
Joined: 14-February 08
From: Dublin, Ireland
Member No.: 107



QUOTE (Linda @ Apr 25 2008, 01:22 AM) *
If I do a redesign, I add folders such as 2008css, 2008js, 2008icons, etc.
That way I always have the old stuff separated from the new stuff.


Regarding the redesign, his old site has everything lumped into the www folder. There is no file structure at all, i.e no folder for images etc.

When he is happy with the new site and structure, I think it will be easier to blow away all the old stuff, this would be clear up some space for him


--------------------
Finally squeeezin!!!!
Go to the top of the page
 
+Quote Post
MikeHopley
post Apr 25 2008, 05:46 AM
Post #7


Squeeze Machine
*****

Group: Mentor
Posts: 602
Joined: 15-February 08
From: UK
Member No.: 143



I use this structure:

ROOT
-- [source]
---->[images] (for any page design elements such as rounded corners)
---->[css]
---->[php]
---->[js] (javascript)
-- [images] (for content images)

...and then I have some pages in the root, and some pages in subfolders.

I like to put all my non-content stuff in the source folder, because it's out the way when I'm working on content.

This post has been edited by MikeHopley: Apr 25 2008, 05:48 AM
Go to the top of the page
 
+Quote Post
Ryan
post Apr 25 2008, 05:27 PM
Post #8


Rapid Squeezer
****

Group: Members
Posts: 123
Joined: 14-February 08
From: Hounslow, London
Member No.: 133



I organize things similarly.

CODE
/page-1/
/page-2/
/workspace/
    css/
    images/
    javascript/
    utilities/


I put every image used on my site in the image folder, even if they're used only once on a single page. I find it a lot easier to manage that way. The only exception to that is if I have a folder with a page that doesn't follow my site's normal design.


--------------------
Go to the top of the page
 
+Quote Post
joey
post Apr 29 2008, 10:56 AM
Post #9


Fresh Squeezed
**

Group: Members
Posts: 48
Joined: 14-February 08
From: Hillsboro, OR
Member No.: 37



I'm late I know, but... I do pretty similar to everyone above but I put a "_" in front of folders for images, js (the one's people don't generally navigate to) and such just to keep 'em up top. Folders vary from project to project of coarse but here's a general outline.

www/
- _css/
- _img/
- _js/
- _inc/
- admin/
- index.php

etc...


----
Ryan, you put every page into a different folder?

This post has been edited by joey: Apr 29 2008, 10:57 AM


--------------------
Go to the top of the page
 
+Quote Post
karinne
post Apr 29 2008, 11:56 AM
Post #10


Co-Founder
*******

Group: Co-Founders
Posts: 2,799
Joined: 13-February 08
From: Squeezin'
Member No.: 2



QUOTE (joey @ Apr 29 2008, 11:56 AM) *
Ryan, you put every page into a different folder?


I do that too ... like a portfolio page would be in /portfolio/index.xxx. A contact page would be /contact/index.xxx, etc....


--------------------
The Squeeze Store is now OPEN! Come on in and grab something!

a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter
The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN!
Go to the top of the page
 
+Quote Post
Daygon
post Apr 29 2008, 06:47 PM
Post #11


Rapid Squeezer
****

Group: Members
Posts: 120
Joined: 13-February 08
From: Houston, Texas
Member No.: 12



what i do is i have alll my stuff like this...

page
page
page
image folder with images
css with css pages
javascript with js pages


and so on and so on

so my links are
www.blah.com/index.xxx
www.blah.com/portfolio.xxx

and so on


--------------------
Jonathon Harrelson
Portfolio: InterAction Media Inc
Available for work
Go to the top of the page
 
+Quote Post
joey
post Apr 30 2008, 11:35 AM
Post #12


Fresh Squeezed
**

Group: Members
Posts: 48
Joined: 14-February 08
From: Hillsboro, OR
Member No.: 37



QUOTE (karinne @ Apr 29 2008, 08:56 AM) *
I do that too ... like a portfolio page would be in /portfolio/index.xxx. A contact page would be /contact/index.xxx, etc....


I hate it when I end up with multiple pages with the same name.

When going for "pretty urls" why not just use .htaccess: mod rewrite?

When not using a CMS I'll put the main pages in the root dir. Or if running everything from index (small, dynamic website) the add'l pages live in a _pages/ directory

This post has been edited by joey: Apr 30 2008, 11:38 AM


--------------------
Go to the top of the page
 
+Quote Post
karinne
post Apr 30 2008, 11:38 AM
Post #13


Co-Founder
*******

Group: Co-Founders
Posts: 2,799
Joined: 13-February 08
From: Squeezin'
Member No.: 2



QUOTE (joey @ Apr 30 2008, 12:35 PM) *
I hate it when I end up with multiple pages with the same name.


What does it matter when they aren't in the same folder? index being the default page it's just easier that way.

It's something that I started doing before I came to understand the whole .htaccess thing ... I just stuck with it tongue.gif


--------------------
The Squeeze Store is now OPEN! Come on in and grab something!

a web design portfolio | web non-sense - REDESIGNED!
I'm also on: del.icio.us | flickr | virb | facebook | twitter
The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN!
Go to the top of the page
 
+Quote Post
joey
post Apr 30 2008, 12:55 PM
Post #14


Fresh Squeezed
**

Group: Members
Posts: 48
Joined: 14-February 08
From: Hillsboro, OR
Member No.: 37



QUOTE (karinne @ Apr 30 2008, 08:38 AM) *
What does it matter when they aren't in the same folder? index being the default page it's just easier that way.

It's something that I started doing before I came to understand the whole .htaccess thing ... I just stuck with it tongue.gif



Well they can't have the same name in the same dir anyway on_the_quiet.gif

Ultimately, I s'pose it's not that big of a deal to have files all over with the same name, I would just hate to get 'em mixed up somehow.

If you only have one page open at a time, it doesn't really matter, but more often than not I will have multiple pages open and it can be a pita when it ends up looking like he image in the screenshot I attached below:

Just personal preference. Not attacking anyone. scratch_one-s_head.gif
Attached File(s)
Attached File  screen_capture.png ( 18.15K ) Number of downloads: 12
 


--------------------
Go to the top of the page
 
+Quote Post
Mark
post Apr 30 2008, 01:00 PM
Post #15


Don deluzione
******

Group: Team Leaders
Posts: 1,007
Joined: 13-February 08
From: Canada eh?
Member No.: 7



QUOTE (joey @ Apr 30 2008, 11:55 AM) *
Well they can't have the same name in the same dir anyway on_the_quiet.gif

Ultimately, I s'pose it's not that big of a deal to have files all over with the same name, I would just hate to get 'em mixed up somehow.

If you only have one page open at a time, it doesn't really matter, but more often than not I will have multiple pages open and it can be a pita when it ends up looking like he image in the screenshot I attached below:

Just personal preference. Not attacking anyone. scratch_one-s_head.gif


yes! that is exactly what I don't like either. On the other hand. Most pages I've created use a cms, which has 1 index.php. the rest is handled by the SEO-part of te cms smile.gif


--------------------
Go to the top of the page
 
+Quote Post
welshstew
post May 2 2008, 04:26 AM
Post #16


Squeezing
***

Group: Members
Posts: 82
Joined: 14-February 08
From: inside the outside
Member No.: 118



a bit late in the day, but I am moving towards the following structure for my new site:

CODE
- /  - root of folder
- /images/shared/  - images shared across the entire site
- /images/<sectionname>/  - images for each specific page
- /includes/css/
- /includes/scripts/
- /includes/template/ - for all layout includes (header, navigation, footer etc)
- /<sectionname>/<page>
- /<sectionname>/<subsection>/<page>


all links, images, etc will then be root relative i.e. "/blah/blah/blah.asp" rather than "../../blah.asp"


--------------------
Go to the top of the page
 
+Quote Post
Antti
post May 2 2008, 05:21 AM
Post #17


Rapid Squeezer
****

Group: Advisors
Posts: 275
Joined: 15-February 08
From: Finland
Member No.: 139



For ages I've had this kind of arrangement:

- /img/ - All images in one folder. If I have a separate sections which require a lot of images I put them to separate subfolder like /img/gallery/
- /inc/ - My own include files like config, functions etc...
- /lib/ - All third party libraries like Switfmailer
- /tpl/ - Smarty template files
- /css/ - All css files
- /js/ - All javascript files and libraries

All php files go directly under the root.

I know this ain't the best kind of solution but it has served me very well. With ASP.NET I have a lot different setup with ASP.NET special folders but that's another subject.

This post has been edited by Telos: May 2 2008, 05:21 AM


--------------------
anttisimonen.com - .NET developer

anttis.wordpress.com - Blog
Go to the top of the page
 
+Quote Post
Fancy
post Jun 19 2008, 01:19 AM
Post #18


New Squeeze
*

Group: Members
Posts: 3
Joined: 19-June 08
Member No.: 256



I think, you should have seperate folder for each web page,Once you start linking multiple pages together, it's easy to break the links if you move your pages to a different location.


--------------------
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: