FP Auto Code (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


Kitkatxyz -> FP Auto Code (11/18/2002 15:10:47)

A while back someone posted how to go in and change all the code FP automatically inserts in a page. Used it, loved it, and definitely made life easier--- but I' ve reinstalled FP since then and can' t remember now how to do it. I' ve done a search, but can' t seem to find the info... and could really use it so I don' t have to keep manually changing it on the 40+ pages I' m trying to get added to a site today!

Can someone tell me again how to do this, or point me to the original thread?

Thanks!
Kat




Seventh -> RE: FP Auto Code (11/18/2002 15:26:47)

I think this is what you' re talking about:

File > Properties

I couldn' t find the original thread so this may get you started.




Kitkatxyz -> RE: FP Auto Code (11/18/2002 18:20:23)

Yeah... that looks a little familiar. [:p] I remember it was something about creating new tags for it to add... just don' t remember all the details.

Anyone else know where I can find the old thread? Or the person who posted this info??




Eli -> RE: FP Auto Code (11/18/2002 19:56:50)

was it code regarding the Databse Results Wizard - if so the thread is here:

http://www.frontpagewebmaster.com/tm.asp?m=54911&p=3&tmode=1




Kitkatxyz -> RE: FP Auto Code (11/18/2002 23:03:07)

No... wasn' t about database, but in the code for good ol .htm pages in FP. You know... all that " Generator=Frontpage" garbage.... and then said how to include your own as standard on every page (ie, link to stylesheet). Just can' t find the post or figure out how I did it.

Thanks though! [:)]




Kitka -> RE: FP Auto Code (11/19/2002 3:04:01)

quote:

No... wasn' t about database, but in the code for good ol .htm pages in FP. You know... all that " Generator=Frontpage" garbage.... and then said how to include your own as standard on every page (ie, link to stylesheet). Just can' t find the post or figure out how I did it.


Were you using TP_ErrOmi tools? URL here:

http://solution-shelf.com/frontpage/ErrOmi/EO_FAQ.htm




Kitkatxyz -> RE: FP Auto Code (11/19/2002 10:33:50)

Thanks for all your help... but I guess I' ve not been clear enough in what I' m looking for. The post was about how to go in and change what FP writes as the default code on a new page-- you know... all this stuff:

<meta name=" GENERATOR" content=" Microsoft FrontPage 5.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >


The post gave details on how to change what it does or doesn' t list there in the default template, so you don' t have to go in and change it each and every page. (ie-- deleting the " generator" tag and adding a keyword tag, stylesheet link, etc. Those things we use on almost every page we create). I' m positive it was a post I read in the Forums a while back... so surely someone remembers reading it or posting it. [:D]

Kat




Justjay -> RE: FP Auto Code (11/19/2002 10:53:59)

Did it use a Macro??? If so it is on the MS KB - been trying to find it myself....




Justjay -> RE: FP Auto Code (11/19/2002 11:00:51)

Is [this] it?




Kitkatxyz -> RE: FP Auto Code (11/19/2002 11:00:57)

Nope. No macro.




Kitkatxyz -> RE: FP Auto Code (11/19/2002 11:04:50)

Step 1 of that link looks familiar. But will that alter it for ALL pages, or just the ones in that particular site? The rest of the link isn' t it though. I don' t think I' ve ever used a macro on anything-- so that' s something I would remember doing. [:)]




Justjay -> RE: FP Auto Code (11/19/2002 11:09:35)

You have to set this up and then run the macro and it will check your pages to see if you have those meta-tags and add them if they are not there....however if you want to get rid of those 2 FP tags that are always there....I know that Jimco Addins have a plugin that remove those tags....




Kitkatxyz -> RE: FP Auto Code (11/19/2002 11:12:12)

Well... I' ll certainly look at the macro more closely then. But I would still like to find the original post that did all of this right through FP itself. Took me less than 5 minutes to originally set up... and saved much time on the design end. Hmmmm....... [&:]




Kitka -> RE: FP Auto Code (11/19/2002 23:55:22)

quote:

... But I would still like to find the original post that did all of this right through FP itself. Took me less than 5 minutes to originally set up... and saved much time on the design end.


Hi Kitkatxyz,

Your question has prompted me to look into this more closely - I have always done the meta-tag editing by hand and am constantly irritated by having to remove coding that I never want. I strongly suspected that what you were talking about was editing the normal template - but initially could not find how to do it. Now I have - found the following at: http://accessfp.net/backgrounddefault.htm

quote:

Open FrontPage

Click File | New | Page | Normal
DO NOT tick " add task"
Click ok

Right click your mouse on your page in ' Normal View' and select ' Page Properties' | General | Background | Colours | Background.

Then change the background, fonts and hyperlinks to the colours you wish to choose, you can change the margins, enter Meta tags that you wish to employ globally and change the title of the page as well as several other things with this dialog box.

Now you are ready to save:

Click File | Save As (NOT Save). Next to ' File Name' in the pop up dialog box insert the text ' normal' (make sure you type in lowercase as this can cause problems with FTP if you use FTP to publish. Plus this is the default spelling for the ' normal file' in FrontPage)

NOTE: FrontPage will automatically use the correct extension.

Click the ' change' button and insert the text ' Normal' in the ' Set Page Title' box. Click the down arrow of the ' Save File as Type' and choose ' FrontPage Template' (*.tem) Click Save.

The ' Save As Template' Dialog box pops up In the ' Title box' , type a title for the template, which will appear with the standard templates on the General tab in the New dialog box, this should already say ' Normal' (Capital N) if you inserted the title as above. If so leave it as it is.

In the ' Name box' , type the file name of the template, this should already say ' normal' if you inserted the file name as above. If so leave it as it is.

In the Description box, type a description of the template, for example, describe the type of page that is created with the template. When you create a new page, this description will appear in the ' New' Dialog box when you select the template. If it says ' normal template' (lowercase) already, Click ' Save template in the current web' Click ok.

From now on you will have a Normal Template set up with the background, text hyperlinks and certain Meta tags already configured for you when you click File | ' New Page' .


This really neat, as you can create and save a special one for each web, or permanently change the default FrontPage normal.tem

I don' t know if this was the method you originally used but it suits me. Thanks heaps for raising the subject! [:D]




abbeyvet -> RE: FP Auto Code (11/20/2002 4:40:59)

Is this it??

quote:

When you create a new page in FrontPage you get a standard template page which is not a standards compliant page. It does not include a DTD and so you have to enter one manually on each new page. However the template can be edited.

Where the template is located may vary from system to system so you may need to root around a little to find it. On most systems it will be in:

C:\Program Files\Microsoft Office\Templates\1033\Pages\

and will be a HTML page called ' normal.tem'

Three small changes will make the page comply more closely with standards.

Add a DTD to the top. Which one you chose to use is up to you, see more here
Edit the opening HTML tag to read:
<html lang=" en" > - where the language is english, if it is in another language use the appropriate language code.
Change the line that reads:
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
to
<meta http-equiv=" Content-Type" content=" text/html; charset=iso-8859-1" >
Again this assumes your page is in a Western European Language, if you are using a different charset, perhaps Chinese or an Eastern European language you will need to use the appropriate ISO code.
While you are there you can also add anything else you would like to appear with each new page.


It will not remove the two FP meta tags but does let you change all the others. I too had to redo this when I changed to 2002. Also the path to normal.tem changed - I cannot remeber it right now but I just searched for it and found it without difficulty.




Kitka -> RE: FP Auto Code (11/20/2002 7:26:41)

When I saved my newly created Normal template, all appeared to be well - it stayed exactly as I made it. But tonight, when I went back to play around some more, two rude surprises awaited;

quote:

It will not remove the two FP meta tags


The first being that as Katherine quoted above - FP still inserts its Generator and ProgID tags, but worse having made this next change and saved it successfully:

quote:

Change the line that reads:
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
to <meta http-equiv=" Content-Type" content=" text/html; charset=iso-8859-1" >


When I opened a new page with my normal template, FP overwrote it with its default windows-1252. The original was still corrrect - I checked - so FP inserts its three defaults dynamically.[:@]

...Back to the drawing board - still need to find a permanent way to disable the default FP meta tags. Does anyone out there know how to besides using a macro script?




Justjay -> RE: FP Auto Code (11/20/2002 7:48:15)

Here is the [add-in] I told you about




Kitka -> RE: FP Auto Code (11/20/2002 8:16:50)

quote:

Here is the [add-in] I told you about


Many thanks! [:)] I have downloaded it, but am still hoping there is a simple fix rather than having another program running all the time.




Justjay -> RE: FP Auto Code (11/20/2002 10:35:16)

It is not a program that runs all the time...it is an additon to FP. You install it and it becomes part of FP and when you use it is removes the Meta Tags when you save the page...




Kitkatxyz -> RE: FP Auto Code (11/20/2002 12:48:07)

Thanks a bunch! I' ll definitely be giving these a try... and they are looking closer (more familiar) to what I had seen before... so I think we' re heading in the right direction. Although I could have sworn it included a way to keep the FP meta crap out. [:p]

Kat




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125