How would I do this in Dreamweaver....

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
now I'm trying to figure out if Comcast/GoDaddy and other hosting companies actually support this thing or not
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
Originally posted by: Accipiter22
So basically draw out a table with boxes where the menu bar and site title graphic would go, and put those lines in the html for those sections of the table?
That's exactly right. The nice thing about this, when you update your menu or alter the content of your title area, you only need to change the corresponding shtml files.

Also, like troytime mentioned, you probably end up using less time than it takes to fuss with frames. :)

 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: jjones
Originally posted by: Accipiter22
So basically draw out a table with boxes where the menu bar and site title graphic would go, and put those lines in the html for those sections of the table?
That's exactly right. The nice thing about this, when you update your menu or alter the content of your title area, you only need to change the corresponding shtml files.

Also, like troytime mentioned, you probably end up using less time than it takes to fuss with frames. :)

wait wait wait...that still doesn't do what I originally wanted though....I want the menu bar to stay on the side, and the graphic at the top, but the main pane of the website changes depending on what you select from the menu bar....no one's said how to do this with SSI at all...is it possible?
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
GoDaddy's economy Linux plan includes both SSI and PHP. Given that, I'd recommend going the PHP route so you don't have to bother with any .htaccess files.

Do just as Unheard stated and similarly to what I described. Code your html normally as you would but save each file with a .php extension rather than the .html extension. Then wherever you want to use an include put in the php include code as Unheard shows.
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
Originally posted by: Accipiter22
Originally posted by: jjones
Originally posted by: Accipiter22
So basically draw out a table with boxes where the menu bar and site title graphic would go, and put those lines in the html for those sections of the table?
That's exactly right. The nice thing about this, when you update your menu or alter the content of your title area, you only need to change the corresponding shtml files.

Also, like troytime mentioned, you probably end up using less time than it takes to fuss with frames. :)

wait wait wait...that still doesn't do what I originally wanted though....I want the menu bar to stay on the side, and the graphic at the top, but the main pane of the website changes depending on what you select from the menu bar....no one's said how to do this with SSI at all...is it possible?
If you're talking about not reloading the menu and title, then it's either frames, flash or AJAX.

 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
Originally posted by: Accipiter22
Originally posted by: jjones
Originally posted by: Accipiter22
So basically draw out a table with boxes where the menu bar and site title graphic would go, and put those lines in the html for those sections of the table?
That's exactly right. The nice thing about this, when you update your menu or alter the content of your title area, you only need to change the corresponding shtml files.

Also, like troytime mentioned, you probably end up using less time than it takes to fuss with frames. :)

wait wait wait...that still doesn't do what I originally wanted though....I want the menu bar to stay on the side, and the graphic at the top, but the main pane of the website changes depending on what you select from the menu bar....no one's said how to do this with SSI at all...is it possible?

technically the menu and top graphic won't "stay", they'll reload in the exact spot though (and very quickly due to caching, just like your example)
It really is the best solution.
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: jjones
Originally posted by: Accipiter22
Originally posted by: jjones
Originally posted by: Accipiter22
So basically draw out a table with boxes where the menu bar and site title graphic would go, and put those lines in the html for those sections of the table?
That's exactly right. The nice thing about this, when you update your menu or alter the content of your title area, you only need to change the corresponding shtml files.

Also, like troytime mentioned, you probably end up using less time than it takes to fuss with frames. :)

wait wait wait...that still doesn't do what I originally wanted though....I want the menu bar to stay on the side, and the graphic at the top, but the main pane of the website changes depending on what you select from the menu bar....no one's said how to do this with SSI at all...is it possible?
If you're talking about not reloading the menu and title, then it's either frames, flash or AJAX.


so wait, frames IS what I want to use?!?!? This stuff is baffling...I'm just trying to make a simple website...I figured it would take like 2 hours, I'm going on 10 hours now and I still have a blank page...also SSI didn't work, the menu bar shows up in dreamweaver, I get a </title> tag above it though, and 'untitled document' next to the tag, and then when I preview in firefox it doesn't show up.


edit: Also it completely erases all other content on the page and changes the table dimensions to fit the menu bar.



Are you guys SURE that this SSI thing is actually useful??? it looks like a crock of sh*t so far, even after the tutorials...
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
SSI won't work in preview mode if its just previewing off your local drive.
Dreamweaver is smart enough to display the file though. On the server, it will pull that file and include it in that spot.


EDIT
SSI is very usefull. It looks like a crock of sh*t to you because you don't fully understand whats going on.
When the server loads your main page, it will look through it for SSI code.
If it finds it (like the include lines you used), it will grab the contents of that include and place it where the include line is.
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: troytime
SSI won't work in preview mode if its just previewing off your local drive.
Dreamweaver is smart enough to display the file though. On the server, it will pull that file and include it in that spot.


EDIT
SSI is very usefull. It looks like a crock of sh*t to you because you don't fully understand whats going on.
When the server loads your main page, it will look through it for SSI code.
If it finds it (like the include lines you used), it will grab the contents of that include and place it where the include line is.

but I can't DO ANYTHING with it, because SSI destroys my table I just layed out and only displays one or two elements, the main browser pane, the whole reason I've been hacking at this thing for 10 hours, just dissapears the instant SSI is called in.
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: troytime
post a link, something isn't right

Before

After

Seriously, wtf is going on with this thing??? I put ANY kind of SSI code in, and it destroys everything else I've done.



On a side note, I've been for countless hours in SSI and got a blank page. I created the site I wanted, using frames, (which I have NEVER used before), in under 3 minutes. Seriously, how is it more efficient???
 

Unheard

Diamond Member
Jan 5, 2003
3,774
9
81
Your making this too hard. Check out the attached code:

Edit: Yuck thats ugly, let me make you an example page. Hold on a minute.
 

Unheard

Diamond Member
Jan 5, 2003
3,774
9
81
Ok this is ugly, but take a look @ the source:

http://www.unheard.org/Accipiter22.html

You will see the PHP includes under the banner div and the left content div. You would create the pages banner.php and menu.php and that code would cause those pages to be included in those areas. Of course you would need to clean up the color scheme in the CSS to make it look pretty. Hopefully this puts you on the right course.
 

blackllotus

Golden Member
May 30, 2005
1,875
0
0
Originally posted by: troytime
it should take LESS time than doing frames.
its a single line of code, and you don't have to worry about all the target attributes

He's using Dreamweaver so its just point and click for the most part.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
Originally posted by: blackllotus
Originally posted by: troytime
it should take LESS time than doing frames.
its a single line of code, and you don't have to worry about all the target attributes

He's using Dreamweaver so its just point and click for the most part.


still more points and clicks than SSI
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: Unheard
Ok this is ugly, but take a look @ the source:

http://www.unheard.org/Accipiter22.html

You will see the PHP includes under the banner div and the left content div. You would create the pages banner.php and menu.php and that code would cause those pages to be included in those areas. Of course you would need to clean up the color scheme in the CSS to make it look pretty. Hopefully this puts you on the right course.

OK< I think I'm getting this.....now would i put that on each page then, if I wanted to keep the banner and menu on the side?
 

Unheard

Diamond Member
Jan 5, 2003
3,774
9
81
Originally posted by: Accipiter22
Originally posted by: Unheard
Ok this is ugly, but take a look @ the source:

http://www.unheard.org/Accipiter22.html

You will see the PHP includes under the banner div and the left content div. You would create the pages banner.php and menu.php and that code would cause those pages to be included in those areas. Of course you would need to clean up the color scheme in the CSS to make it look pretty. Hopefully this puts you on the right course.

OK< I think I'm getting this.....now would i put that on each page then, if I wanted to keep the banner and menu on the side?

Yep, just use that same page for every page, and just change the content of the page.
 

Accipiter22

Banned
Feb 11, 2005
7,942
2
0
Originally posted by: Unheard
Originally posted by: Accipiter22
Originally posted by: Unheard
Ok this is ugly, but take a look @ the source:

http://www.unheard.org/Accipiter22.html

You will see the PHP includes under the banner div and the left content div. You would create the pages banner.php and menu.php and that code would cause those pages to be included in those areas. Of course you would need to clean up the color scheme in the CSS to make it look pretty. Hopefully this puts you on the right course.

OK< I think I'm getting this.....now would i put that on each page then, if I wanted to keep the banner and menu on the side?

Yep, just use that same page for every page, and just change the content of the page.


thank you so much! I learn better from seeing examples and dissecting them to see how each change effects the code, so that template you gave me was great....


one question: At the top where the banner goes, I made a 'banner.php' file, but dreamweaver doesn't display it, and neither does firefox when I preview it. Is this normal?