Working With Definitions 9-3
9.2 Creating a New Definition
To create a definition, perform these tasks:
1.
In the menu on the Site Assets pane, select the definition type.
2.
Click the Create New icon Figure 9–1
, select New, and then the definition type.
The Assign Info Form displays for you to check the item into the content server.
Figure 9–1 Create New Icon
3. Enter appropriate values for the Assign Info Form.
For guidelines on naming Site Studio assets, see Naming Site Assets
on page 4-3.
4. When complete, click Assign Info.
5. The definition is created.
9.3 Editing Definitions
Editing each definition uses different interfaces. Each interface maximizes the ease in making the changes specific to the type of definition you are working with.
This section includes the following topics:
■
Editing a Placeholder Definition on page 9-3
■
Editing a Region Definition on page 9-4
■
Editing an Element Definition on page 9-5
9.3.1 Editing a Placeholder Definition
The placeholder definition should contain the region definitions, region templates, and subtemplates that would be used to control the content used in the contribution
region.
To edit a placeholder definition, perform these tasks:
1. In the menu on the Site Assets pane, select Placeholder Definitions.
2.
From the list, select the placeholder definition to be edited and click the Edit icon Figure 9–2
. The placeholder definition dialog opens. See
Placeholder Definition Dialog on
page A-103 and Working With Placeholder Definitions
on page 9-7 for more information.
Figure 9–2 Edit Icon
3. Enter a description for the placeholder definition. You should use a good naming
convention for placeholder definitions. If you can understand what the placeholder definition does from the name, then you wont have to view the
definition each time you consider using it.
9-4 Oracle Fusion Middleware Users Guide for Site Studio Designer
4.
Select or deselect the actions you want to allow with the placeholder definition. All of these actions impact how the contributor works with the contribution
region.
5. In the allowed region definitions, click Add to add a region definition, and a
region template.
6. In the allowed subtemplates, click Add to add a subtemplate.
7. Click Remove in any section to remove the selected region definition, region
template, or subtemplate, as applicable. When editing the placeholder definition, you should keep the region definitions,
region templates, and subtemplates in mind. See
Placeholder Definition Dialog on page A-103 and
Working With Placeholder Definitions
on page 9-7 for more information.
9.3.2 Editing a Region Definition
When the region definition has been created, you can open it to include the element definitions you need.
To edit a region definition, perform these tasks:
1. In the menu on the Site Assets pane, select Region Definition.
2.
From the list, select the region definition to be edited and click the Edit icon Figure 9–3
. The region definition dialog opens. See
Region Definition Dialog on page A-72
for more information.
Figure 9–3 Edit Icon
3.
Enter a description for the region definition.
4. Click Add to add elements to the region definition.
The element dialog opens. The Name you give the element is the name used to identify the element within
the region definition, and in any other site assets that refer to this region definition.
The Label you give the element definition is the name of the element located in the toolbar in Contributor.
The Info you enter for the element you add displays as a tooltip when the contributor hovers the mouse over the Label.
5. Select an element and click Remove to remove an element.
6.
Select an element and click Move Up or Move Down to change the order of elements in the region definition.
The order of elements is the order that they display in when Contributor is opened for the contribution region based on this region definition.
In this dialog, you should include all of the elements you want to include in the region definition. You can use and place these element definitions in the region template
when the region template and region definition are associated.
Working With Definitions 9-5
See Working With Region Definitions
on page 9-13 for more information.
9.3.3 Editing an Element Definition
To edit an element definition, perform these tasks:
1. In the menu on the Site Assets pane, select Element Definitions.
2.
From the list, select the element definition to be edited and click the Edit icon Figure 9–4
. A dialog opens that enables you to edit the selected element definition. Depending
on the element type, one of these screens is displayed:
■
WYSIWYG Element Definition Dialog on page A-50
■
Plain Text Element Definition Dialog on page A-54
■
Image Element Definition Dialog on page A-58
■
Custom Element Definition Dialog on page A-60
■
Static List Element Definition Dialog on page A-64
■
Dynamic List Element Definition Dialog on page A-69
■
Custom Element Definition Dialog on page A-60
Figure 9–4 Edit Icon
3.
Enter the info for the element definition. This is a short description of the element to help you remember how the element definition was set up. The information you
provide here helps you remember, at a glance, which specific settings you have placed in the element definition. This is especially helpful if you have created
multiple similar element definitions with only slight differences in the actions from each other.
4.
Select or deselect the actions you would like to allow the contributor to have for the selected element definition.
If you are creating a custom element, the process is different. In each case, the main focus of the editing is to select which objects are available to the
contributors on the toolbars. Each element you define has its own toolbar, and what appears on the toolbar for example, toolbar buttons allowing changes to font size, font
style, paragraph formatting, and so forth is defined when you select or clear the checkboxes in the actions list of an element definition.
It is recommended that you have multiple definitions of each type, to allow for different toolbars that the users can have in different instances. For specific
information on the actions available to modify in each element definition, see the specific screen listed above.
9.4 Copying a Definition
It is simple to copy a definition from one you have already made, allowing you to modify one or two aspects of it to make asset creation go much faster.
To copy a definition, follow these steps:
9-6 Oracle Fusion Middleware Users Guide for Site Studio Designer
Copying a Definition from the list 1.
In the menu on the Site Assets pane, select the definition type.
2.
Select the definition you want to copy from the list.
3.
Click the Create New icon Figure 9–5
, select Copy, and then Selected:
The Assign Info Form displays for you to check the item into the content server.
Figure 9–5 Create New Icon
4. Enter appropriate values for the Assign Info Form.
5. When complete, click Assign Info.
6. The definition is copied.
When the definition has been copied, it can then be opened to edit.
Copying a Definition from the server 1.
In the menu on the Site Assets pane, select the definition type.
2. Click the Create New icon
Figure 9–5 , select Copy, and then from Server.
A search results page displays.
3. Click the corresponding Select button of the ones you want to copy.
The Assign Info Form displays for you to check the item into the content server.
4. Enter appropriate values for the Assign Info Form.
5. When complete, click Assign Info.
6. The definition is copied.
Copying a Definition from your local instance 1.
In the menu on the Site Assets pane, select the definition type.
2. Click the Create New icon
Figure 9–5 , select Copy, and then from Local.
An open file dialog displays.
3. On your local instance, navigate to the definition you want to copy.
4. Select the definition and click Open.
The Assign Info Form displays for you to check the item into the content server.
5. Enter appropriate values for the Assign Info Form.
6. When complete, click Assign Info.
7. The definition is copied.
9.5 Viewing the Content Information of a Definition