Can you make a template for a frameset ?

They have: 112 posts

Joined: Aug 2001

I use DW and must admit to struggling with templates. Oh well I'll figure it out when I apply myself Roll eyes

What I want to know though is can you create a template for a frameset ? I have a number of framed pages and when I change something like the size of the bottom frame for example, I have to do it on all the pages one by one. Same goes for changing the scroll option, making borders visible etc.

I would like to use a template that all the framed pages reference.

Is it possible ?

Cheers, Blue

They have: 20 posts

Joined: Sep 2001

Well uhh the way i have always done frames is like this.

You make a main page that will load all the other pages in it.

Make a new page and make this the source.

------------------------

------------------------

In that you set all the sizes right there.

That will create 3 columns. if you need soemthign more complex then ask.

They have: 112 posts

Joined: Aug 2001

That way of setting frame sizes is MUCH better than what I was doing.

I don't know what you mean by making a main page that will load all the other pages in it but I think I do that already.

The trouble is that my home page does not have frames but every other page does. So from the home page every link has to open the frameset. For example, from the home page I might link to pageA.html and pageB.html. At present they are like this (simplified):

pageA.html

pageB.html

the only difference being the source file for the content page.

So ... if I want to change, say, the column sizes, I have to do it manually for both pageA.html and pageB.html

Is there a way to set frame attributes in a separate file in the same way that we set font attributes in a css file ?

Or would it be easier to leave it as it is and use a find/replace function whenever I need to change column sizes etc ?

Cheers,

Blue

They have: 20 posts

Joined: Sep 2001

Well you coild use soemthing like SSl if you have it. and load a txt file in for the sizes and the txt file would contain the text for the sizes.

They have: 112 posts

Joined: Aug 2001

What's an SSl ?

detox's picture

They have: 571 posts

Joined: Feb 2001

SSi stands for server side includes. It is a way of including files on the current page. You have to check whether or not you host will allow it.

Most ASP pages are built around SSI, it is a good way of including common information or page areas on each page, thus you don't have to go through a whoile site to make a global change. Say you wanted a change in the navigation of a site. If the navigation is run from an include file, instead of changing every page on your site to reflect this, all you would do is change 1 file.

Saves a lot of headaches...

They have: 112 posts

Joined: Aug 2001

Thanks I'll check it out. Sigh, another type of programming to try to figure out.

At least I've streamlined the frame column set up. Thanks again.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.