Welcome Guest!
Please login
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.
![]() ![]() |
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!!!!
|
|
|
Apr 24 2008, 03:10 PM
Post
#2
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Mentor Posts: 205 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 -------------------- |
|
|
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!!!!
|
|
|
Apr 24 2008, 05:57 PM
Post
#4
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,498 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 I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN! |
|
|
Apr 24 2008, 08:22 PM
Post
#5
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,476 Joined: 13-February 08 From: Pink House in USA Member No.: 3 |
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. -------------------- The Squeeze Shop is OPEN! I just ordered my awesome shirts! Did you?
Maine-ly Web Design | My Photography | Twitter ME Become a Fan on Facebook | Check out Stumbleupon |
|
|
Apr 25 2008, 05:22 AM
Post
#6
|
|
![]() Squeezing ![]() ![]() ![]() Group: Members Posts: 70 Joined: 14-February 08 From: Dublin, Ireland Member No.: 107 |
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!!!!
|
|
|
Apr 25 2008, 05:46 AM
Post
#7
|
|
|
Squeeze Machine ![]() ![]() ![]() ![]() ![]() Group: Mentor Posts: 505 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 |
|
|
Apr 25 2008, 05:27 PM
Post
#8
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 119 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. -------------------- |
|
|
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 -------------------- |
|
|
Apr 29 2008, 11:56 AM
Post
#10
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,498 Joined: 13-February 08 From: Squeezin' Member No.: 2 |
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 I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN! |
|
|
Apr 29 2008, 06:47 PM
Post
#11
|
|
![]() Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 115 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 -------------------- |
|
|
Apr 30 2008, 11:35 AM
Post
#12
|
|
|
Fresh Squeezed ![]() ![]() Group: Members Posts: 48 Joined: 14-February 08 From: Hillsboro, OR Member No.: 37 |
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 -------------------- |
|
|
Apr 30 2008, 11:38 AM
Post
#13
|
|
![]() Co-Founder ![]() ![]() ![]() ![]() ![]() ![]() Group: Co-Founders Posts: 2,498 Joined: 13-February 08 From: Squeezin' Member No.: 2 |
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 -------------------- The Squeeze Store is now OPEN! Come on in and grab something!
a web design portfolio | web non-sense I'm also on: del.icio.us | flickr | virb | facebook | twitter The Web Squeeze is also on: virb | facebook | stumbleupon - JOIN IN! |
|
|
Apr 30 2008, 12:55 PM
Post
#14
|
|
|
Fresh Squeezed ![]() ![]() Group: Members Posts: 48 Joined: 14-February 08 From: Hillsboro, OR Member No.: 37 |
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 Well they can't have the same name in the same dir anyway 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.
Attached File(s)
-------------------- |
|
|
Apr 30 2008, 01:00 PM
Post
#15
|
|
![]() Don deluzione ![]() ![]() ![]() ![]() ![]() Group: Team Leaders Posts: 860 Joined: 13-February 08 From: 10km from nowhere and just south of nothing Member No.: 7 |
Well they can't have the same name in the same dir anyway 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. 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 -------------------- |
|
|
May 2 2008, 04:26 AM
Post
#16
|
|
![]() Squeezing ![]() ![]() ![]() Group: Members Posts: 80 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" -------------------- |
|
|
May 2 2008, 05:21 AM
Post
#17
|
|
|
Rapid Squeezer ![]() ![]() ![]() ![]() Group: Members Posts: 232 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 |
|
|
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.
-------------------- |
|
|
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!
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:







Apr 24 2008, 02:33 PM












