Using dynamic linksYou can add links on dynamic pages to any other pages, dynamic or static. GoLive lets you specify additional behavior for any link page element. You can control several aspects of link behavior. You can bind the text of a link to a content source field so that the text that appears on the page actually comes from a data source. You can bind the destination of a link to a content source field so that, when a viewer clicks the link in a browser, the page shown is specified by a content source field. In addition, you can add link actions to a link. These link actions control which record is viewed on the page to which the link points. To bind link text to a content source field: Select the text in the Layout editor, and then in the Dynamic Bindings palette, select the content source and field. When the page is served, the selected text is replaced by the contents of the content source field you selected. To bind the destination of a link to a content source field:
The value from the content source is placed directly in the HREF attribute of the link. Thus, the value in the underlying database must be a fully qualified URL (for example, http://www.adobe.com) or a page-relative, unqualified URL (for example, page2.html). The value in the database can also be relative to the site root. If this is the case, select the URL Is Relative to Site Root option. GoLive adjusts the value received from the database by prefixing it with the correct number of ../ entries so that the link goes to the proper page. Using this feature lets you store page paths in the database without having to know the full site URL or the page from which the links originate. To add a link action to a link on a dynamic page:
To add URL arguments to a link on a dynamic page:
Note: you cannot add arguments if there is already a Show Next, Show Previous, Show First, or Show Last Record link action in the link. You can add multiple arguments, which can contain either fields from defined content sources, or you can enter text in the value field. Note: Links to dynamic pages will not work properly when you preview the page within GoLive, use the Show in Browser button, or simply open the page locally as a file in a browser. In order to test the functionality of dynamic page links, the page must be served up live on your Web server and viewed in a browser by typing in its Web address, using the form http://webserver/site/page.asp. |