Forum Moderators: phranque
For the past few months I have been trying to find a solution to this problem but as yet have had no luck:
IfI wanted to change something on the layout of each page (ie, text in the footer, a different logo etc), is there a way of doing this without having to manually edit each page one by one in FrontPage?
If there is a solution to this I'd be grateful for any advice!
An easier solution would be to use a programming language to include a header and footer. Some popular choices are PHP and Perl.
I built my site with Frontpage
Oh now woe is me
Yes I built my site with Frontpage
An' now I'm feelin' misery
'Cause I got me a whole alot o' pages
Chock full of bloated code
Yes I got me a whole lot 'o pages
Each one a heavy load
I coulda' just used notepad
Spent some time learning to code
Yes I coulda' used just notepad
But my mind's in wysiwig mode.
I built my site with Frontpage
Oh now woe is me
Yes I built my site with Frontpage
An' now I'm feelin' misery
Example: instead of the code for your header insert the following - <?php require "header.inc";?>
then create a file with the header code and name it 'header.inc', I use a html editor for this (arachnophilia) you may also copy and paste the code into notepad and save as .inc.
Add this to you .htaccess file on the server (must be apache):
AddType application/x-httpd-php .htm .html
and away you go.
It is also search engine friendly:)
Of course, initially you will have to go through the search and replace business to set it up omn existing pages. This can be done in phases depending on your boredom level ;)
Added:
Another thread related to this issue [webmasterworld.com]
But seriously, the best way to implement an easily maintainable layout system is to have both your header and footer in the same file. This is because your opening and closing tags are then in the same file the way they are meant to be.
Fortunately there is a framework that comes with this ability built in.
It's called Mason [masonbook.com].
Just read the first few paragraphs of the book maybe do a search for 'header and footer'.
It's perl based, extremely robust and flexible. If you can think of it, you can do it with mason.
/plug ( no affiliation )
FrontPage has at least two ways to make such changes. One is a very smart global find and replace, which can find regular expressions and material within specified tags, before and/or after specified tags, etc. Much better than a text editor because it understands the HTML. (Works in HTML code view.) This is for making unplanned global changes.
For anticipated global changes, there is another system for including "one page in another" which actually includes parts of pages from independent files (such as a footer file which is maintained in one place and inserted in all the pages of a site) automatically fixing up relative references. You give the page fragment a name (such as "footer.htm") and then in each page where you want that code included you just write its name in a special comment, like
<!--webbot bot="Include" U-Include="includes/footer.htm"
TAG="BODY" -->
which means to copy and "relocate" all the code within the <BODY> tag of the page "footer.htm" in directory "includes".
A single page can be assembled from over a hundred fragments in separate files, and a fragment can be used in hundreds of pages (in my personal experience) with very good performance. All of the includes are checked after insertion, so errors such as broken links are detected and reported before the site is uploaded to the server.
Unlike "server-side includes" which are done when a page is requested, "FrontPage2003 includes" assemble the parts of pages into the files once, before FTP'ing to the server. The server can be a Unix/Linux server or a Windows server, and does NOT need to have any FrontPage Extensions installed; the server doesn't even know that its static pages were assembled by FrontPage2003.
Microsoft has free video training which includes both of the above techniques:
[office.microsoft.com ]
The misinformation that the only way to update the repetitive parts of a FrontPage2003 site is to edit every page individually isn't very plausible; no one could ever build a real site that way.
The misinformation that the only way to update the repetitive parts of a FrontPage2003 site is to edit every page individually isn't very plausible; no one could ever build a real site that way.
I don't think anybody suggested that the poster should do this. Everybody gave solutions that will work. They are all plausible and accurate.