
427
ADOBE GOLIVE CS2
User Guide
Components
Components
You use GoLive components in your pages to reference one or more elements stored in a single HTML source file.
Components are useful for buttons, logos, headers, mastheads, or other common navigation elements that you want
to use throughout your site. When you add a component to a page, the component remains linked to its source file
until you detach it.
You can double-click components on the page to open their source files and edit the files. Changes you make to
elements in a component’s source file are updated dynamically in the pages that use the component. Once you’ve
added a component to the page, you can use the Crop Text feature to crop text in components. If you use a
component on multiple pages, you can crop each instance uniquely, creating text content specific to each page design.
Note:
Components cannot contain objects from the Head set in the Objects palette. Also, you should make sure to use
the same character encoding for a component’s source file as the character encoding in the pages that use the component.
(See “To add elements or scripts to the head section” on page 163.)
To create a component source file
1
In a new document window, add the desired content for the component (for example, a layout grid with your
corporate logo and headline).
2
If you’ve changed Script Library settings in Preferences or changed Site Settings to Write Code In Page, specify
that the component source file import the GoLive script library: Click the Show Page Properties icon in the upper
right corner of the document window. In the Page Inspector, click the HTML tab, and then click Component.
3
Open the site window and do any of the following to save the page as a component:
•
Choose File > Save As, name the component, choose Components from the Site Folder menu, and click Save.
•
Choose Save As > Component from the document window menu, name the component, and click Save.
•
In the site window, drag the page from the Files tab to the Components folder in the Extras tab, or to the site
specific section of the Components tab in the Library palette.
Note:
Components are stored in the site’s web-data/components folder and appear in the Components tab in the Library
palette and the Extras tab of the site window.
To use a component
❖
Do one of the following:
•
Drag the component’s icon from the Components tab of the Library palette to the page.
•
From the Smart set in the objects toolbox, drag the Component icon to the page. Then, in the Component
Inspector, specify the destination of the link by dragging from the pick whip to the component’s source file in the
Extras tab in the site window.
Summary of Contents for GOLIVE CS2
Page 1: ...Chapter 1 Copyright User Guide...
Page 251: ...ADOBE GOLIVE CS2 242 User Guide...