From the Page Groups portlet Work In drop-down list, select a page group to own

12-22 Oracle Fusion Middleware Users Guide for Oracle Portal page_pathitem_name?_template=page group nametemplate name A call to override the default Portal Template for items in a durable URL takes the following syntax: http:host:portportalpagedad[lang-language][ver-version] item_guid?_template=page group nametemplate name The template name to call is the Name specified when the template was created. This is in contrast to the template’s Display Name. You can create a Portal Template for items that includes a link to a printer-friendly version of the item using one of these URL formats in conjunction with two Item Placeholder items, each in its own region, two Portal Templates for items, and two HTML content layout templates. When you place two Item Placeholders on the same template, they render the same item. Armed with this knowledge, you can create a Portal Template for items that includes a link to a printer-friendly version of the item—one that gives more real estate to the article and eliminates unnecessary additional content. For example: ■ Create a Portal Template for items, named MainItem. ■ Create a second Portal Template for items, named PrinterFriendly. This is the template that will override the default item template currently selected in page or item properties. ■ On the MainItem template, create at least two regions: one for the display of item content, the other for the display of a link to the printer-friendly version of the item. Add an Item Placeholder to each region. ■ Create an HTML content layout template to render a link to the item using the item.url substitution tag and invoke the PrinterFriendly Portal Template for items using the URL syntax demonstrated at the beginning of this section. For example: a href=item.url?_template=mypgPrinterFriendly img src=imagesprinter.gif border=0 Printer Friendly a This code displays a printer icon with the label Printer Friendly Figure 12–7 . Figure 12–7 Printer Icon and Label The icon and text are enclosed in an HREF tag that references the displayed item’s URL item.url and the PrinterFriendly Portal Template for items ?_ template=mypgPrinterFriendly. This reference works for all items because the item.url substitution tag renders the URL of the current item, whatever that may be. Note: Before either call can work, the Printer Friendly template must already be created.