E.4 Database Portlet Substitution Tags

Use the tags listed in Table E-7 when you construct Unstructured User Interface templates for database portlets. For more information about templates for database portlets, see Chapter 12, "Providing a Standard Look and Feel".

Table E-7 Database Portlet Substitution Tags

Substitution Tag Value Set By …

#BODY#

The database portlet

#OWNER#

The Portal schema that owns the database portlet

#IMAGE_PREFIX#

The Oracle Portal images directory as specified in the plsql.conf configuration file

#USER#

The user name of the user who is currently logged on

#USER.FULLNAME#

The full name of the user who is currently logged on

The full name includes the user's first, middle, and last names.

#USER.FIRSTNAME#

The first name of the user who is currently logged on

#USER.MIDDLENAME#

The middle name of the user who is currently logged on

#USER.LASTNAME#

The last name (surname) of the user who is currently logged on

#VERSION#

The version of this installation of Oracle Portal

#HELPSCRIPT#

The JavaScript function used to open a window to display the Oracle Portal online help

If you include #HELPLINK# in your template, you should also include this tag.

#DIRECTION#

The direction of character layout (left-to-right or right-to-left)

This value is set based on the language selected for the portal. Use it in conjunction with portals using bi-directional languages. For example, using PL/SQL (between <oracle></oracle> tags), you can set up if statements that query the current text direction and, based on the result, set the alignment of template elements using the #ALIGN_LEFT# and #ALIGN_RIGHT# tags.

#ALIGN_LEFT#

Align content to the left

#ALIGN_RIGHT#

Align content to the right

#TITLE#

The portlet's display name as assigned through the portal

#HEADING# and #TITLE# render the same content.

One way to use the #title# substitution tag is to pass it as a parameter that tells you the page a user was on when he, for example, clicked your "Contact Us" link. For example:

<HEAD>
<TITLE>#TITLE#</TITLE>
#PAGE.STYLE#
#PAGE.BASE#
</HEAD>
<Body leftMargin="0" rightMargin="0" topMargin="0" marginheight="0" marginwidth="0" class="PageBG">
#BODY#
<a href=
"http://www.<page_that_takes_URL_Param.com?currPage=#TITLE#">Contact Us</a>
</BODY>
</HTML>

#HEADING#

The portlet's display name as assigned through the portal

#HEADING# and #TITLE# render the same content.

#HELPLINK#

Portlet help URL

#HOMELINK#

Portal home URL

#FRAMELINK#

Portlet frame URL