|
|
|
|
![]() ![]() |
May 30 2005, 09:12 PM
Post
#1
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 29-April 05 Member No.: 4,527 |
Hi,
Quick question (I hope =P), I've started to create my own webpage (I currently have a filler graphic up on my astasite) and I have something of a file tree on my computer with the various pages and stuff related to it in different folders. Example (everything on the page is within the main folder, within the other folders are data from other pages and graphics) Main Folder *index.html *graphics *blah blah blah *Folder 2 **2nd page **graphics **blahblahblah *Folder 3 **3rd page **graphics **blahblahblah **Folder4 ***4th page ***graphics ***blahblahblah My Question is about the organization of the webpage html files and their graphics, is it better to organize everything within folders and from the pages point to the graphics in the folders, or is it better to upload everything within one folder and point to each file within that one folder. ...as in...if I have three different pages, a main page, a links page and a blog, and the main page links to the links page and the blog page, should all my links/blog graphics be within specific folders, or is it better to keep everthing together and point to the graphics right there instead of creating folders? |
|
|
|
May 30 2005, 10:24 PM
Post
#2
|
|
|
Demonic Enforcer Group: [HOSTED] Posts: 597 Joined: 2-March 05 From: Belgium Member No.: 2,861 |
Well, I suppose it depends on your personal flavour
/images/ <all the graphics of pages in the root folder> style.css index.php about.php links.php blah.php Let's say blah is a page which also offers subsections. then my public_html will look like /images <all graphics of root folder pages> style.css index.php about.php links.php /blah [/tab]/images <all images of blah.php and it's subsections> [tab]blah.php (I use the ../style.css) blah2.php I hope this makes sense LOL.. But that's how I do it |
|
|
|
May 31 2005, 12:53 AM
Post
#3
|
|
|
Premium Member Group: Members Posts: 218 Joined: 14-March 05 From: Singapore Member No.: 3,041 |
It's always better to have your subsections in different folders, because if you ever want to expand your site, it'll be neater and make more sense logically.
Actually, it'll be good if you planned out your site structure before you plunge into designing your site and actually making your site. A good site structure is one where you have a balanced "tree", that means, for example, if I was to have a portfolio site, and I have the subsections of "poetry", "prose" and "art", those would form the first "branches" of the tree. Under each branch, let's say for poetry, I would only have poetry, whereas for "prose" I have stories, lyrics, profiles, snippets, and for art I would have photography, design, websites. Now you see the branches are imbalanced, because my poetry subsection is only one level deep whilst my prose and art sections are two levels deep with several branches offshooting. The idea is to make your subsections logical enough so that you have a nice even tree. If you plan your site this way you can also control the number of clicks a visitor would need to reach the most inner page. The old traditional number was that a visitor should only need to click three times to get to the page they want. I personally feel it's okay if they click more than three times (though that's a good number to stick to) if you provide interesting content along the way and make your navigation logical. Now finally back to the topic. If you plan your site structure out this way, you will see that it's common sense to have folders for every subsection and section for your site. In my case, I would have a "prose" folder, and then within the "prose" folder I would have more folders named "stories", "lyrics" and the like. This is because I know I would have around 10+ files in each folder, and it just makes it easier to maintain, instead of having a smattering of files in the main public_html folder with random filenames that I have to click and open to know what is inside. Having folders just make sense if you know you're going to have a complicated or big site, and having them around even when you have a simple site makes expanding the site easier. A good gauge is the number 10. If you know you're going to have more than ten files, you should start to folderise. That's all my own opinion of course. *wink* |
|
|
|
May 31 2005, 01:05 AM
Post
#4
|
|
|
Advanced Member Group: Members Posts: 173 Joined: 18-May 05 Member No.: 5,201 |
^ verry informative post ^
Helpfull definitely!! I`ll keep all of this in mind comes the time I have time to build myself a decent site.I`ve allready made a simple one tho but I want I nicer looking one eventualy. Good one chiiyo |
|
|
|
May 31 2005, 10:55 PM
Post
#5
|
|
|
Member [ Level 1 ] Group: Members Posts: 39 Joined: 31-May 05 From: Milford, CT Member No.: 5,650 |
hey!
it's all a matter of preference. however, i would strongly recommend that you use folder trees, the way you currently do. that way you can sort images separate from documents, PDFs, and MP3s, etc. bigredrosen |
|
|
|
Jun 2 2005, 12:33 AM
Post
#6
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 29-April 05 Member No.: 4,527 |
Thanks for the replies guys, sorry I haven't been on enough to get back to them immediately =S
So folder trees like regular comptuer files, great, one question down, thanks =D Second question, when I go to upload my files in cpanel, I can't just upload a folder off of my computer that has all my other folders and stuff togehter in it already, can I? As in, say I creat my site completely on my computer, I'm sure all the links work, and everything is in it's place ready to be uploaded. I can't simply upload the "root" folder that all my site branches from, can I? (and if I can't, would a work around be to upload a zip file [wich would be my "root" folder] and then unzip the file to my actual root folder?) thanks again for your quick replies! |
|
|
|
Jun 2 2005, 02:32 AM
Post
#7
|
|
|
Premium Member Group: Members Posts: 218 Joined: 14-March 05 From: Singapore Member No.: 3,041 |
Actually that would really depend on which ftp manager you use. If you use the file manager in cpanel, you would have to create you folders first, and then go into your folder, and then create your subfolders, and then go into your subfolders, and then upload your files. It's kinda tedious, I know. It helps if you already have the structure on your computer, and you can mirror it as you go along.
There are a few ftp managers out there that allow you to haul the entire folder with all it's subfolders and inside pages headlong and just dump it all at the location. I used to use one on the mac platform, rbrowserlite. Not too sure about what ftp managers do that on the windows or linux platform. My current ftp manager Cyberduck doesn't do that either (I think, haven't tried). I do not think you can upload a zip and open the zip onto the location, if you try opening the zip you would be, in actual fact, downloading the contents onto your own computer. Having said that, I think it's better if you do it manually and in the long way I mentioned earlier in this post, because that way you can be sure all your files ended up where they should. Having more control over where your files land up. You never know, sometimes your connection might be interrupted along the way and you might lose some files, and if you just dumped the whole folder in you would never know what didn't get uploaded and stuff. Best option that is a compromise in between is be sure to get a ftp manager that allows you to upload multiple files at one go, and then when you hit the subfolder level you can just select all the files and upload. |
|
|
|
Jun 2 2005, 03:13 PM
Post
#8
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 29-April 05 Member No.: 4,527 |
Good points Chiiyo, I guess it's the long way then =/
Oh well =) Thanks again for the quick replies guys, much appreciated =D |
|
|
|
Jun 2 2005, 04:54 PM
Post
#9
|
|
|
Advanced Member Group: Members Posts: 196 Joined: 12-April 05 Member No.: 3,899 |
Personally i would install a CMS and use a template from that rather than manually setting up HTML pages... But you do have the right idea about how to organize a static site...
|
|
|
|
Jun 3 2005, 01:34 AM
Post
#10
|
|
|
Premium Member Group: Members Posts: 218 Joined: 14-March 05 From: Singapore Member No.: 3,041 |
Good luck then m3ch4.... to madcrow, I used to want to use a CMS, but somehow I've always felt it's just better to code the website by hand and then upload it... For me customizing the CMS to produce pages the way I want them to look would have taken even more time than to actually code them... that's probably why I still end up manually coding my pages... and manually blogging.... and manually creating my own rss feeds after so long... =_=... *heh*
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 22nd August 2008 - 02:23 AM |