|
garry -> RE: I HATE INCLUDES!!!!! (5/11/2003 2:14:57)
|
I love Includes !!!!!!!!!!! ( & I still have a long way to go) Whats more I just tested and found they work without extensions and having been FTP' d. Step back from the PC Deb, and go for a walk outside, come back and try this angle!! Consider this.................. My index page is called index.htm (original) I have other separate pages I have been working on in my web called page1.htm (lazy), blue.htm, header.htm (with just my header image & a bit of text on it sitting at the top of the page), navigation.htm(with just my navigation buttons sitting in its own 140pix? wide table in the centre of the page), footer.htm(with just address details & a stray image sitting adhoc at the top of its page), etc etc Now on my index page I have a few tables .... as we do ....... with 3 includes within it...... At the very top of my index page I went , INSERT> Web Component >INCLUDE > header.htm and my header appeared across the top called header.htm. Down the LHS cell in my 2 cell table I " included" ie web component>include... my navigation.htm . The right hand side of this table will be the content & stuff I am yet to write out . And down the very bottom (actually not even in a table) I clicked on INSERT>Web Component> Include & found my page called footer.htm and zap.........I almost have an index.htm page I am happy with.........just needs content and a bit of tweaking. I play with the header.htm page & delete a few spaces that appeared underneath it (cant see them) But on the index page the other stuff just bumped up a few lines. Navigation only has home & blue on it, I can add to it later when I get my main index page just right. The footer part of my index.htm page is rough enough, this will be all over the place on every page anyway, depending on how much content I put on each page. Ooops I forgot the web address .....so go to footer.htm and modify. OK I am happy with my layout of my index.htm page, the navigation include is where I want it (butt up to the include header) Now I want to make a new page so I save index.htm as a " save as" debs_page2.htm Now debspage2 looks like index.htm, but with different content added into the RHS cell nextto the Navigation. (I think I just used my index page as a template....without realising it!) Whats more I am also going to save the index page as name " template.htm" and keep opening template.htm and saving as the name of all other pages I want. (might make the template.htm page use the same background properties as the index.htm page so I only need to change the index page background for future modifications) Anyway, using my template.htm, I save 3 times as red.htm, yellow.htm & green.htm and add content to each of these pages Hmmm, now I go to my navigation.htm page and type in and hyperlink the names red, yellow & green. This update appears on every page in my web with the includes in them. (Actually the blue.htm page and page1.htm will need to be overwritten using the template.htm as they do not have the new include pages formatting since they were created in my web earlier) before making my layout & (template). I may of totally confused you with my terminology, but maybe someone else out there will be 2 steps closer. Cheers from the Outback
|
|
|
|