Hyperlink Formats Working With Links

Building A Site 12-25 You might hide the Choose Format screen in the Link wizard for several reasons for example, to prevent user confusion, to prevent undesired linking choices by the user, or to enforce consistency for the hyperlinks on your site.

12.4.9 Hyperlink Formats

When you create a hyperlink, you have numerous choices regarding the format of the link. The format is the way the link is assembled. You can choose a path-based URL for the link or an ID-based URL for the link. If you choose path-based, then you can choose between a full path or a relative path. If you choose ID-based, then you can choose between client-side script, server-side script, or a special token provided by Site Studio. There are advantages and disadvantages to each. Please review the following table for a side-by-side comparison. Side-By-Side Comparison Description of Each Category Advantages Full Path Rel. Path Server-Side ID Client-Side ID URL Token Natural site address Yes Yes Yes No No Hides cryptic siteID and nodeID values Yes Yes Yes No No Can be indexed by search engines Yes Yes Yes No Yes Unaffected by site hierarchy changes No No Yes Yes Yes Works in reused page templates Yes No Yes Yes Yes Requires no server-side scripting Yes Yes No Yes Yes Requires no client-side scripting Yes Yes Yes No Yes Requires no redirects on server Yes Yes Yes No No Capable of bookmark links Yes Yes Yes No No Supports passing parameters Yes Yes No No Yes Can open in popup windows Yes Yes Yes No Yes Can be used in native documents Yes Yes No Yes Yes Category Description Natural site address You see a friendly, path-based address in the URL. Hides cryptic siteID and nodeID values Visitors and contributors viewing the site do not see the cryptic Site Studio technology in the URL. 12-26 Oracle Fusion Middleware Users Guide for Site Studio Designer

12.5 Comparing Changes on a Web Page

As you edit page templates in the site hierarchy, there may be times when you want to see what has changed on a given page, before and after you or someone else edited that page. You may want to know, for example, how much text was removed, how much new text was added, and where most of the edits took place. You can do this using the document comparison feature in Site Studio. You can use this feature to compare page templates in Designer, and you can use it to compare web pages from the contribution graphic on a web page. Depending on which one you use, you are comparing different results. ■ When comparing page templates in Designer , you compare two versions of a page template: the one stored in memory and the latest one checked into the content server. In other words, youre seeing the changes youve made to the page before you save it. ■ When comparing web pages using the contribution graphic , you compare two versions of a complete web page, which may comprise data files, native documents, page templates, fragments, and more. When you compare web pages like this, you compare the most current version of the page and the latest released version in the content server. You only see a difference between the current version and the latest released version of a web page when the release date has been set for a future time, or the page is part of a workflow and hasnt been approved yet. See Chapter 15, Using Workflows for more information. The following sections describe this feature in more detail: ■ Color-Coded Differences when Comparing Web Pages on page 12-27 ■ Using the Compare Changes Feature on page 12-27 Can be indexed by search engines Search engines can index the site. Unaffected by site hierarchy changes You can change the site hierarchy for example, rename sections or move a section into another one without affecting your links. Works in reused page templates You can reuse the page template, data file, or native document throughout the site, and the link still works. Requires no server-side scripting The Web site does not have to rely on server-side script for example, Idoc Script. Requires no client-side scripting The Web site does not have to rely on client-side JavaScript. Requires no redirects on server The Web site does not have to rely on a server-side redirect that points the ID-based address to a path-based address, which may result in decreased site performance. Capable of bookmark links You can use the link for bookmark links, which allow the user to link to any part of a web page. Supports passing parameters You can append, or pass, a parameter to the URL to achieve a desired result. Can open in a popup window You can use the link to open a new popup window, which requires some scripting. Can be used in native documents You can use this same format of a link in a native document. Category Description