Building A Site 12-17
6. Click Next.
7.
Depending on the site configuration, you may be prompted to choose the URL format of the link:
■
Path Based URL: The link will contain a path to the target location. You have
two choices for this type of link:
– Absolute Path:
Generates a full path; for example --ssServerRelativeSiteRoot--productsindex.htm
where --ssServerRelativeSiteRoot-- gets replaced with the path to the root of the Web site.
– Relative Path:
Generates a relative path instead of a full path; for example ..productsindex.htm.
Please note that this option is not available if you chose to use the default Web site section for the content file as the target section see previous step.
■
ID Based URL: The link will contain the coded identity of the target location
rather than the path-based name. You have three choices for this type of link:
– Client Side Script Format:
Uses client-side JavaScript to construct a link to the target location; for example, javascript:nodelink10024;.
– Server Side Script Format:
Uses server-side Idoc Script to construct a link to the target location; for example,
[--wcmUrlnodelink,10024--].
– URL Token Format:
Uses a redirect on the server to construct a link to the target location; for example, ssNODELINK10024.
8. Click Options....
The Link Target Options dialog is displayed.
9.
If you want the link to open in a new web browser window when clicked, select the Open link target in new window check box, and then choose the target in the
menu _blank. You can also directly enter the name of the target in the text box if you want, but if it is not a valid target, the link is faulty.
10. Click OK or Cancel to return to the wizard.
11. Click Next.
12.
Verify the URL for the link.
13. Click Finish.
12.4.2 Creating a Link to an Existing File on the Content Server
You can create a link to an existing content file contributor data file or native document on your site or another site in the content server.
To create a link to an existing file on the content server, perform these tasks:
1.
Highlight the text or image that you would like to turn into a link.
2. Click the Create Hyperlink icon
Figure 12–21 in the toolbar.
Figure 12–21 Create Hyperlink Icon
12-18 Oracle Fusion Middleware Users Guide for Site Studio Designer
The Link wizard is launched see Link Wizard
on page A-31.
3. Select Link to a file.
4. Click Next.
5. Select Existing file from server, and click Next.
The standard search results page on the content server is displayed, showing all content files associated with the Web site.
6. Click Select next to the file you want to link to.
7.
Choose the target section for the link. You can choose from the following options:
■
Use default website section metadata: If you choose this option, the
hyperlinked content file will display in the Web site section as currently specified in the Web Site Section metadata field for the content file.
■
Choose a website section: If you choose this option, the hyperlinked content
file will display in the Web site section of your choice in effect overriding the default target section of the content file. The section may be in the current
Web site or another Site Studio site on the content server.
■
Link to the Content Items URL: If you choose this option, the file will display
exactly as it is stored on the content server rather than within the framework of the Web site. This is useful for linking to native documents such as PDF
files.
Click Next to continue. 8.
Depending on the site configuration, you may be prompted to choose the URL format of the link:
■
Path Based URL: The link will contain a path to the target location. You have
two choices for this type of link:
– Absolute Path:
Generates a full path; for example --ssServerRelativeSiteRoot--Menusswitched_region_
CDF where --ssServerRelativeSiteRoot-- gets replaced with the path to the root of the Web site.
– Relative Path:
Generates a relative path instead of a full path; for example ..Menusswitched_region_CDF.
Please note that this option is not available if you chose to use the default Web site section for the content file as the target section see previous step.
■
ID Based URL: The link will contain the coded identity of the target location
rather than the path-based name. You have three choices for this type of link:
Note: You can step through the wizard faster by clicking the blue
arrow to the left of the option you want to use. This automatically selects the option and moves the wizard to the next step.
Note: The content server query from the link wizard is an open
query in Designer. In Contributor, the query is more controlled.
Building A Site 12-19
– Client Side Script Format:
Uses client-side JavaScript to construct a link to the target location; for example, javascript:linkswitched_
region_CDF;.
– Server Side Script Format:
Uses server-side Idoc Script to construct a link to the target location; for example, --wcmUrllink,switched_
region_CDF--.
– URL Token Format:
Uses a redirect on the server to construct a link to the target location; for example, ssLINKswitched_region_CDF.
9. Click Options....
The Link Target Options dialog is displayed.
10.
If you want the link to open in a new web browser window when clicked, select the Open link target in new window check box, and then choose the target in the
menu _blank. You can also directly enter the name of the target in the text box if you want, but if it is not a valid target, the link is faulty.
11. Click OK or Cancel to return to the wizard.