Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Web Authoring / October 2003

Tip: Looking for answers? Try searching our database.

Word, HTML, templates and custom <body> tags

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordon Price - 30 Sep 2003 18:46 GMT
I am working on an office Intranet, which will use a Java based menu & frames. I would like to have the vast majority of the content done in Word so the people responsible for the content can manage it themselves. However, to get the menu to work in a frames setup, I need the <body> tag to look like this
<body onload="javascript:{if(parent.frames[0]&&parent.frames['menu'].Go)parent.frames['menu'].Go()}" topmargin="0" leftmargin="0">
in every page. Is there a way to setup some sort of include to do this, or do I need to manually edit the code? Ideally I would like to add a template to our office templates that starts a filtered HTML doc with the correct <body> tag.

Also, I would like to be able to use CSS to manage the site. In Frontpage you can have a page inherit settings from another page or a CSS file. Can this be done with Word?

Any suggestions?

Regards,
Gordon
Bob  Buckland ?:-\) - 30 Sep 2003 19:51 GMT
Hi Gordon,

In Word 2002 and 2003 you add external CSS styles
through Tools=>Templates & Add-Ins, but you may still
have Word styles to deal with.

You'd probably need to add scripts and modify the
body tag externally, or to use automation/VBA to
control the editing process of the documents you
want to work with in Word.

=========

I am working on an office Intranet, which will use a Java based menu & frames. I would like to have the vast majority of the content
done in Word so the people responsible for the content can manage it themselves. However, to get the menu to work in a frames setup,
I need the <body> tag to look like this
<body onload="javascript:{if(parent.frames[0]&&parent.frames['menu'].Go)parent.frames['menu'].Go()}" topmargin="0" leftmargin="0">
in every page. Is there a way to setup some sort of include to do this, or do I need to manually edit the code? Ideally I would like
to add a template to our office templates that starts a filtered HTML doc with the correct <body> tag.

Also, I would like to be able to use CSS to manage the site. In Frontpage you can have a page inherit settings from another page or
a CSS file. Can this be done with Word?

Any suggestions?

Regards,
Gordon >>
Signature

I hope this helps you,

Bob  Buckland  ?:-)
MS Office System Products MVP

 *Courtesy is not expensive and can pay big dividends*

The Office 2003 System parts explained
http://microsoft.com/uk/office/preview/system.asp

Gordon Price - 30 Sep 2003 20:46 GMT
> Hi Gordon,
>
> In Word 2002 and 2003 you add external CSS styles
> through Tools=>Templates & Add-Ins, but you may still
> have Word styles to deal with.
Yea. I continually have problems with Word wanting to make a bazillion BAD
styles available. I think styles would get used more if you could build the
3 or 4 styles the office uses into the template and lock them down. As it
is, there are just way too many options, with the majority of them being
either redundant or just piss poor, but there because some graphically
challenged marketing person things the more the better. I am trying to
handle that in training.

> You'd probably need to add scripts and modify the
> body tag externally, or to use automation/VBA to
> control the editing process of the documents you
> want to work with in Word.

So I take it there is no way to make a template that is an HTML format and
includes the modified <body> tag? Sure makes it hard to use Word for
building an intranet then (at least when I am trying to get a bunch of
Architects to do most of the work ;) I'll look at some VBA solutions, or I
may just do it manually as content is made available.

Thanks for the info.

Gordon
Bob  Buckland  ?:-\) - 05 Oct 2003 15:28 GMT
Hi Gordon,

Hmmm, actually, you may be able to work
with Word from that angle.

Take a new blank word document and save it
as an .htm file and apply your changes to that,
and try to use it as a template rather than a .doc or .dot file

Word may or may not override the body tag, but it didn't
in a couple of test saves after adding content.

===========
So I take it there is no way to make a template that is an HTML format and
includes the modified <body> tag? Sure makes it hard to use Word for
building an intranet then (at least when I am trying to get a bunch of
Architects to do most of the work ;) I'll look at some VBA solutions, or I
may just do it manually as content is made available.

Thanks for the info.

Gordon >>
--
Hope that helps,

Bob  Buckland  ?:-)   MS Office Products family MVP
    *Courtesy is not expensive and can pay big dividends*

http://go.CompuServe.com/MSOfficeForum?loc=us

Have a little fun with Office
 http://microsoft.com/uk/office/xtra/

Get a Microsoft Certification of your Office App Skills:
 http://microsoft.com/traincert/mcp/mous/requirements.asp

Try the new MS Knowledge Base Help and Support Search Tools & FAQ:
 http://support.microsoft.com

Choose the newsgroups focused on your MS Office applications:
via  Browser:
  http://communities.microsoft.com/newsgroups/default.asp?icp=prod_office
by Newsreader: (Outlook Express)
  news://msnews.microsoft.com
Gordon Price - 06 Oct 2003 17:37 GMT
> Hi Gordon,
>
[quoted text clipped - 7 lines]
> Word may or may not override the body tag, but it didn't
> in a couple of test saves after adding content.

That is pretty much what I had come to. I was hoping to be able to use a
true DOT based template however. After harping on users for some time that
we have REAL templates, and they are easy to get to, and you should use them
exclusively, now I have to say 'except for intranet pages'. I am sure they
will find other 'exceptions' I don't want to hear about ;)

Best,
Gordon
Bob   Buckland ?:-\) - 06 Oct 2003 20:21 GMT
Hi Gordon,

Unfortunately, once you save it back as a .dot or a .doc
file Word loses any customization of the body tag.
Looks like some form of automation, either through the
script editor or VBA to modify the source of the web
document if you're starting from a .DOT file.

=======
That is pretty much what I had come to. I was hoping to be able to use a
true DOT based template however. After harping on users for some time that
we have REAL templates, and they are easy to get to, and you should use them
exclusively, now I have to say 'except for intranet pages'. I am sure they
will find other 'exceptions' I don't want to hear about ;)

Best,
Gordon >>

Signature

Bob  Buckland  ?:-)
MS Office System Products MVP

 *Courtesy is not expensive and can pay big dividends*

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.