Site Extras
Adobe GoLive 6
updated 12/04

GoLive makes it possible to save pieces of code to be used over and over. Pieces of code are saved in the Data Folder of the Site File in the form of Snippets, Components, Stationery, and Templates. These extras can be accessed whenever necessary.

Snippets

Snippets are objects or text (code or content) that you can use over and over in your site. Copying any item to the Library Tab of the Site File will turn it into a Snippet. First, click the Library Tab of the Site File. Open the page containing the desired object or text, select it and drag it to the Library Tab of the Site File. Name the Snippet as desired. Now you can drag the snippet from the library (or from the Library Tab of the Objects Palette) whenever you need it. Essentially, GoLive is pasting in the "snippet" of HTML. To edit a Snippet, double click on its icon in the site file. You will get an encoding error, but you can open it anyway. When editing Snippets, the changes you make do NOT apply to the pages that currently contain it, for this capability, use Components instead.


Components

Components are similar to Snippets except that editing them changes all existing instances of the Component, and they are linked to rather than pasted into a document. Components should be stored in the Components Folder in the site's Data Folder.

Anything on your site that occurs frequently, such as a navigation bar, header, or footer can be saved as a Component.

  • Open a new GoLive Page and create the document that will be used as a Component.
  • Click on the Page icon and make sure that the Component button is dimmed. If it is active, click on it so it will dim.
  • To save in the Components Folder, Go to File/Save As, and select Components from the drop down menu. Name your Component and click Save.

  • To add a Component to a document, click on the SmartObjects tab in the Objects Palette. Drag the Component icon on to the desired page.
  • A Component place holder will appear, as well as the Component Inspector.
  • Drag the Point and Shoot button in the Inspector to the Component's icon in the Component folder of the Site File's Data folder.

Stationery

Stationery is a type of template that can be used to create multiple pages with the same design. To make Stationery, drag a new page to the Stationery folder in the right side of the site file (Extras). Alternatively, create the page and then save it in the stationery folder, using the shortcut button in the finder, below.

To use the Stationery, double click on its icon in the Site File's Stationery Folder. Click Create to create a new page with the existing Stationery, or click Modify to modify the Stationery.

Note: Changing stationery will not change any existing pages; only those pages made after the change will be affected. Use a template for these capabilities.


Templates

Templates are similar to Stationery doucuments except that when a template is changed, all existing pages created with the template will change as well. In addition, editable regions of each template must be designated through the Template Regions window (below). Create a template by adding a new page to the Template folder on the right side of the Site File. Add all necessary design elements. Select and name the desired editable region(s) and click the New Editable Region button on the bottom right of the Template Regions palette. Name the area.

When saving, use Save As and choose Templates in the Site Folder drop down menu. Double click your template to use it.


Finally, once a site extra is saved to the appropriate folder, it becomes available through the Site Extras Tab of the Objects Palette.