Oracle® Fusion Middleware Administrator's Guide for Dynamic Converter 11g Release 1 (11.1.1) E10634-02 |
|
Previous |
Next |
Home > Administrator's Guid... > Template Rules
This section covers the following topics:
A rule is a set of instructions that drive the conversion process in Dynamic Converter. These instructions identify source documents in the Content Server and then determine whether or not these documents should be converted based on their metadata (content ID, type, author, etc.) and file type. The rule then requests that the document be converted using the template associated with the rule (for more on templates, see Chapter 4, "Conversion Templates"). You can have more than one rule in Dynamic Converter. If this is the case, the first rule to match the source document's metadata is used for dynamic conversion. Depending on the system configuration, other matching rules may also be applied (see "Forced Conversions").
The Template Selection Rules page (see "Template Selection Rules Page") allows you to add, remove, and reorganize rules; specify the criteria (metadata) to base a rule on; and assign a template (or templates) to the rule.
A number of features have come together to form the Template Selection Rules page. You can add multiple rules and then change the order in which those rules will apply to source documents. You can select a number of metadata fields to base a rule on (and add even more fields using the configuration page). Lastly, you can assign a template (or templates) to the rule and then edit those templates using the Edit Template button.
The top section of the Template Selection Rules page (see "Template Selection Rules Page") enables you to manage the template rules.
To add a new template rule, complete these steps:
Open the Dynamic Converter Admin page (see "Dynamic Converter Admin Page").
Click Template Selection Rules.
The Template Selection Rules page is displayed (see "Template Selection Rules Page").
Type a name for your rule in the New rule name text box (under the Template Selection Rules heading).
Click Add New Rule.
When your rule is highlighted, you will notice that the criteria and template fields for the rule are blank. You can start entering the desired metadata criteria and template for this rule right away.
Click Update at the bottom of the Template Selection Rules page.
To delete a template rule from the Template Selection Rules list, complete these steps:
Open the Dynamic Converter Admin page (see "Dynamic Converter Admin Page").
Click Template Selection Rules.
The Template Selection Rules page is displayed (see "Template Selection Rules Page").
Highlight the rule to be deleted and click Delete Rule.
Click Update at the bottom of the Template Selection Rules page.
Important: Deleting a rule will remove all of the settings (metadata criteria and template) for that rule. You cannot undo this operation. |
To change the order in which your template rules are processed, complete these steps:
Open the Dynamic Converter Admin page (see "Dynamic Converter Admin Page").
Click Template Selection Rules.
The Template Selection Rules page is displayed (see "Template Selection Rules Page").
Do either of the following:
To move a rule up the list, where it is prioritized over other rules, highlight the rule and click Move Up. Then click Update.
To move a rule down the list, where it will receive a lower priority, highlight the rule and click Move Down. Then click Update.
When assigning conversion templates to content items, you need to make sure that the metadata specified here matches the metadata assigned to your source documents. You can verify this by opening the content information page for your source documents in the Content Server.
To assign metadata to a template selection rule, complete these steps:
Open the Dynamic Converter Admin page (see "Dynamic Converter Admin Page").
Click Template Selection Rules.
The Template Selection Rules page is displayed (see "Template Selection Rules Page").
Choose a metadata field from the first Field list (under the "Criteria for selected rule" heading). You may choose Type, Author, Title, Content ID, Title, or a number of other fields.
In the Value text box, enter the metadata that you would like your rule to target.
You can select the metadata value from the menu to the right of the Value text box. You can also use wildcards to specify a metadata value.
If desired, choose a second and third metadata field for your rule.
There will always be an "AND" relationship between the metadata fields, which means that only those content items that meet all criteria are converted by this rule.
The maximum number of criteria that you can specify for each rule is controlled by a setting on the Dynamic Converter Configuration Page (see "Dynamic Converter Configuration Page").
Click Update on the bottom of the Template Selection Rules page to update your rule.
Your template selection rule is not complete until you choose a template for the rule. The template will ultimately drive the appearance of your converted documents.
To assign a template to a rule, complete these steps:
Open the Dynamic Converter Admin page (see "Dynamic Converter Admin Page").
Click Template Selection Rules.
The Template Selection Rules page is displayed (see "Template Selection Rules Page").
Enter the content ID for the template in the Template text box (under the "Template and layout for selected rule" heading).
You can select a type of template (HTML Conversion, Classic HTML Conversion, or Script) from the Template Types menu, and then you can select your desired template from the Available Templates menu.
If you chose a Classic HTML Conversion template in the previous step, you may want to complement it with a layout template. If so, enter the content ID for the layout template in the Layout text box (again, you may select the layout template from the Available Layouts menu).
Click Update to add the template to your rule.
Once you have created a template selection rule, assigned the appropriate metadata criteria to it, and selected a template (or templates) for the rule, you should verify your configuration settings on the Dynamic Converter Configuration page (see "Dynamic Converter Configuration Page"). In particular, make sure that you have added the necessary file types to the Conversion Formats list.
See Chapter 4, "Conversion Templates" for more information about templates.