Syndicate content
> Make Life Easier with Shared Page Elements : Introduction

Make Life Easier with Shared Page Elements : Introduction

Introduction
Home-grown solutions


Introduction

In the early days of the web, sites were usually built with primitive text editors, one page at a time, one painstaking HTML tag after another. Yeah, back then also we walked five miles to school, uphill both ways. And we liked it.

Current web building tools make it easier than ever for content managers to maintain a site's consistent look and feel -- every page with your logo at the top, a primary navigation bar in a prominent place, and a footer with your company's address and phone number, for example.

This article shows how you can create these page elements once and have them shared by every page in your site. So, if you're still living in the horse-and-buggy world of building every page top to bottom from scratch, repeatedly coding your banners and footers, it's time to harness the power of shared page elements. Let's start with a few of the more popular web authoring tools.

FrontPage

Achieve consistency in your FrontPage-built site by using Shared Borders, which are page regions reserved for content such as page titles and navigation bars that you want to appear consistently throughout the site.

Start by clicking on the Navigation icon on the Views bar to switch to Navigation view. On the Format menu, click Shared Borders. In the Shared Borders dialog box you can specify where on your pages FrontPage should insert Shared Borders. You'll probably want to make sure the All pages option is selected.

Note that you can have more than one Shared Border, such as one at the top of the page for your logo, and one down the left for the navigation bar.

With the Shared Borders in place, all existing and new pages will, you guessed it, "share" the same logo, navigation links, etc. If you make changes to an element in a Shared Border, the change will be reflected automatically throughout your site.

That's not all. You can apply a Theme that gives pages, banners, navigation bars, and other elements an attractive and consistent appearance. With any page open, click Theme on the Format menu to display the Themes Properties dialog box. Refer to online Help for the the dizzying array of options available to you.

Dreamweaver

Our favorite web authoring tool lets you create a template that can be applied to the entire site. In Dreamweaver create a basic page that includes only those elements that you want on every site page. Apply this page to a defined site by selecting File - Save as Template. Select the defined site and give the template a name. Once the template is saved, you'll have to define what is editable and what isn't.

There's a lot to this powerful feature, so refer to Dreamweaver's online help for more information.

NetObjects Fusion

If this is your tool of choice, make sure you're using Fusion's powerful SiteStyles feature. You can select from over 200 SiteStyles that put a consistent look and feel to your site. You can even create your own site style.

Another feature you'll want to use are navbars (navigation bars). These are Fusion generated-navigation aids which appear as a series of links or linked buttons in your web pages. One great thing about these highly-customizable navbars is that they continually reflect your site's structure as you add sections and pages to your site.

For more information about sitestyles and navbars refer Fusion's online User Guide.

Editor's Note: NetObjects is out of business as of September, 2001

HomeSite

While HomeSite is not a WYSIWYG tool like FrontPage or Fusion, it's a fine HTML editor. Your best bet with this tool is to create a template.

Create an HTML file to hold the repeatable code that contains the "shell" for each page -- at a minimum, the opening and closing HTML and BODY tags. Include code for your logo, primary navigation, and other shared page elements. Save this file as a custom template (File - Save as Template). When you create new pages (File- New), click on the custom template.

Unfortunately, using this approach will not allow you to make site-wide changes to existing files.


Keith Reichley
www.webthejoint.comKeith Reichley is webmaster for WEBtheJOINT, the web resource center for small business. Contact Keith at keith@webthejoint.com.

User login

Christian-Web-Masters.com newsletter

Stay informed on our latest news!