# Properties for All Portal Components

As you modify a .portal or .portlet file in WebLogic Workshop Platform Edition, you can use the Property Editor window to set portal and portlet properties. The following table describes the common properties you can set for all portal components.

Administration Properties
Markup Name | Read-only. The unique name of a component markup type. For example, three shell files (markup type "shell") must each use a unique Markup Name inside their .shell files. (Because desktops, books, and pages do not have associated .desktop, .book, and .page files, the exact same Markup Name is used for each.)
Presentation Properties
Presentation Class | Optional. Typically a style sheet style, or class. Overrides the class attribute that would otherwise be used by the component's skeleton. For proper rendering, the class must exist in a cascading style sheet (CSS) in the desktop's selected skin, and the skin's skin.properties file must reference the CSS file. Sample - If you enter my-custom-class, the rendered HTML from the default skeletons will look like this: <div class="my-custom-class"> The properties you enter are added to the component's parent <div> tag. On books, pages, and portlets, use the Content Presentation Class property to set properties on the component's content/child <div> tag, especially for setting a style class that enables content scrolling and height-setting.
Presentation ID | Optional. A unique ID inserted in the rendered HTML tag for the component. The value you enter (which must be unique among all presentation IDs in the portal) overrides the ID that might otherwise be inserted by the component's skeleton. An example use would be inserting a unique ID that JavaScript could operate on. Sample - If you enter 12345, the rendered HTML from the default skeletons will look like this: <div id="12345">
Presentation Style | Optional. HTML style attribute to insert for the portal component. This attribute is equivalent to a style sheet class attribute and overrides any attributes in the style sheet class. Separate multiple entries with a semicolon. Sample - If you enter {background-color: #fff} for a portlet titlebar, the rendered HTML from the default skeletons will look like this: <div class="bea-portal-window-titlebar" style="{background-color: #fff}"> and the portlet titlebar will have a white background. The background-color attribute you entered overrides the background-color attribute in the bea-portal-window-titlebar class. The properties you enter are added to the component's parent <div> tag. On books, pages, and portlets, use the Content Presentation Style property to set properties on the component's content/child <div> tag, especially for setting content scrolling and height.
Properties | Optional. A semicolon-separated list of name-value pairs to associate with the object. This data can be utilized by the skeletons to affect rendering.
Skeleton URI | Optional. The path (relative to the project) to a skeleton JSP that will be used to render the portal component. This JSP overrides the skeleton JSP that would otherwise be used by the selected Look & Feel for the desktop. For example, enter /frameworks/myskeletons/mytitlebar.jsp.

Related Topics

Desktop Properties

Header and Footer Properties

Book and Page Properties

Placeholder Properties

Portlet Properties

#