Customization approaches
You can select one of the following customization approaches to customize the Fluent user interface:
• Provide a new ribbon definition
• Modify definitions in custom.xml
Provide a new ribbon definition
You can replace the default RibbonDefinition.xml by an entry in your custom.xml:
<Ribbon>
<Definition>http://<localhost>/CustomRibbonDefinition.xml</Definition>
</Ribbon>
The new definition file is referenced by an URL. The following URL formats are supported.
1. HTTP: http://myserver.ptcnet.ptc.com/MyRibbonDefinition.xml
2. File System: file:///d:/repository/MyRibbonDefinition.xml
3. From Jar File: classpath:com/acme/ribbon/MyRibbonDefinition.xml
For more information on XML syntax, see the XML elements and attributes section of this guide.
Modify definition in custom.xml
You can customize the Fluent user interface by modifying the ribbon elements of the custom.xml
<Ribbon>
<Customize>
....
</Customize>
</Ribbon>
Ribbon elements can be removed by a path-like syntax. The path of a particular element can be determined by the
Display Current Ribbon Structure tool. For more information about the developer tools, see
Developer Tools.
Additions and modifications of ribbon elements are specified in the same syntax as in
RibbonDefinition.xml. Existing elements can be modified by overwriting the respective XML child or attribute. In particular, the order of elements can be changed by simply referencing the elements with a modified
weight attribute. For more information, see
weight.