View Full Version : Site Manager and Sub directories
eigasuki
7-31-04, 05:51 AM
I'm new here and finding things a little confusing and different than my old site. Have a couple of related queries
At the moment I'm logging into webftp to access my site directory. Is that all it is? a list of the files I've uploaded? It seems to me that if I want to edit a document I can basically only cut and paste, add or delte and then save. Then I have to open it again if it's still not right. Am I missing something? Cos it looks like the only alternative is to edit in my own documents and upload/overwrite the file. Seems a bit more more complicated than I'm used to.
I'm using the move to get a growing site organised into subdirectories. Ok so far but that this mean I need to put a copy of my style sheets in each directory? I've done this so far but is there a way to have the same style sheet for the whole site so when a change is made, I don't have to do it in each directory?
Finally, I've inadverently uploaded a lot of files into the wrong directories and some not even into the htdocs folder. Is there a way to transfer the files into the correct directory? I can, and have already for some, just uploaded them into the correct one but is there an alternative? And is there a quicker way to delete them from the wrong place apart from clicking delete - it's very slow doing it that way!
Sure you can use 1 style sheet for all of your pages. Just upload the style sheet into one folder (I'll call it common for now) and then point each page to where that style sheet is located like this
<style type="text/css">
<!--
@import url(/common/style.css);
//-->
</style>
Just change the "style.css" to what your actual style sheet is named.
You can get an FTP program to handle the deletion of files better and faster than using webftp. FileZilla (http://sourceforge.net/projects/filezilla) is one that is free to use.
Webftp is a web based application and altough it has some functions, if you want more you can always get a windows client like cuteftp or ws_ftp for more advanced features.
http://www.cuteftp.com
http://ipswitch.com
I've been using ws-ftp and I'm finding that a bit complicated too - OK if you want to transfer one file or the whole contents of a folder but I can't seem to be able to highlight just some files so I don't transfer over files that I don't want transferred.
I tried the code to use the same stylesheet - it's in a directory called "all" and i put this code
<style type="text/css">
<!--
@import url(all/hmolstyle.css);
//-->
</style>
in the head where I usually put the link to the style sheet, but nothing happened.
And how come the navigation doesn't work once you are in a subdirectory? Somehow the name of the subdirectory is in the coding of the links and I didn't put them there? Is that done by some automatic robot? I intend to do it by ssi later but just now I want to get the site up and working and it's proving a little more complicated than I thought.
Croc Hunter
8-1-04, 01:30 AM
With ws_ftp a folder must be empty to delete it. You can click the first file hold [Shift] and click the last file to select groups of files. Hold [Ctrl]+[Alt] then click to select specific files. You can always just use Internet Explorer to delete non-empty folders ftp://ftp.username@ftp01.powweb.com - use your ftp0# of course.
Giving us a link to the broken nav / subdirectory problem would help.
Pick any page!
http://www.hansmatheson.org/canone/cimain.html
You go to the Canone directory, but if you click on of the navigation links, which are not in that directory, it says page not found eg http://www.hansmatheson.org/canone/moviesmain.html but the code on the page doesn't say the canone part - (cos moviesmain.html is ouside theat directory, just in the htdocs. Should those main pages have their own directory?
I still haven't found a way to get the stylesheet working across the site without just loading it in each directory - Might as well nor=t have an external style sheet if that's the case.
I'm starting to feel really dumb
Croc Hunter
8-1-04, 02:42 AM
It's just a broken path.. on your homepage change the link http://www.hansmatheson.org/canone/moviesmain.html to http://www.hansmatheson.org/moviesmain.html do that for all the hompages broken links http://www.hansmatheson.org/musicmain.html etc..
For the style sheet you have put the lines of code in all html pages. Then altering the hmolstyle.css file affects all pages.
But it isn't there in the code! Here's what I have on each page, there's not directories there but when you are on the page and click the link, it says the directory etc. I don't see what is broken in order to fix it.
<a href="index.html" title="Hans Matheson Online - the quintessential fansite
for British actor Hans Matheson" class="menu">home</a>
<br> <a href="hanstheman.html" title="Biography. articles and interviews with Hans" class="MENU" >hans</a>
<br> <a href="moviesmain.html" class="menu" title="A comprehensive listing of Hans' movies and other appearances">hansmovies</a>
<br> <a href="musicmain.html" class="menu" title="Information about Hans as a musician. Listen to him sing">hansmusic</a>
<br> <a href="hmolmedia.html" class="menu" title="View trailers, visit affiliates.
Includes our international section. Read articles in other languages">hansmedia</a>
etc etc
My style sheet worked fine on my other site but I didn't have any directories - I thought organising things in directories was going to make things quicker and easier HA!
As you can see, although the code for the style sheet is in the file, it is not picking up the style sheet unless it it is in the same directory. I tried putting a copy in a directory called 'all' and linking to that but it didn't work either.
Croc Hunter
8-1-04, 05:09 AM
try: <style type="text/css">
<!--
@import url(/all/hmolstyle.css);
//-->
</style>
You missed the pre / in /all/hmolstyle.css
If you use the full path, you will solve that problem....e.g.
http://www.hansmatheson.org/common/style.css
With ws_ftp a folder must be empty to delete it. You can click the first file hold [Shift] and click the last file to select groups of files. Hold [Ctrl]+[Alt] then click to select specific files. You can always just use Internet Explorer to delete non-empty folders ftp://ftp.username@ftp01.powweb.com - use your ftp0# of course.
Giving us a link to the broken nav / subdirectory problem would help.Version 7.61 of WS_FTP allows deletion of folders that aren't empty but it's an option/preference you have to set.
try: <style type="text/css">
<!--
@import url(/all/hmolstyle.css);
//-->
</style>
You missed the pre / in /all/hmolstyle.css
So I did - and it seems to have solved that problem!
Thanks so much, I'm much happier now :) :)
Still not sure about those apparently broken links though
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.