To make your custom pages available to users, you need to publish the page to a specified location. Next, you upload it to a Relativity application. You can also use the PushResourceFiles() method on the RSAPIClient to add a custom page programmatically. See Use the Application Deployment System through the Services API.
This page contains the following information:
- Publish your custom page project
- Upload a custom page file to Relativity
- View or edit custom pages on an application
You need to publish your Visual Studio project that contains your custom page before you can upload the files to Relativity.
- Open your custom page project in Visual Studio 2012.
- In Solution Explorer, right-click on your project and click Publish.
- In the drop-down box, select New and enter a name in the New Profile box. Click OK.
- Select a Publish Method.
- Click to choose a location for your published files.
- Click Next and select Debug from the Configuration drop-down box.
- Click Publish.
- Navigate to the directory where you want to publish your web application.
- Add the contents of the parent directory to a .zip file. (Don't add the parent directory to this file.)
- Complete the steps in Upload a custom page to Relativity.
Use the following steps to add a custom page to a Relativity application:
- Select the Custom Pages tab.
- Click New Custom Page to display the Custom Page Layout. See Custom page layout fields.
- Click Save to view custom page properties. Relativity updates the Custom Page Link field so that it now displays a base URL. You can use this URL when creating tabs. For more information, see Custom page layout fields.
Note: When you click Save, Relativity verifies that you haven't selected a restricted file type. An error appears if you select a restricted file type, or if you attempt to modify a custom page that is part of a locked application.
- To view the custom page, link it to your application. See Basic concepts for custom pages.
- Export the application. See Exporting applications on the Relativity 9.5 Documentation site.
- Import the application into another workspace to view your custom page. See Installing applications on the Relativity 9.5 Documentation site.
The custom page layout contains the following fields:
- Name – the name for the custom page.
- File – click to select the file containing the source code for your custom page. You must publish your custom page before you can select it here. See Publish your custom page project. Optionally, click to remove the selected file from the field.
- Custom Page Link – this field displays a base URL that you can use to link your custom page to a tab after you click Save. When you create a tab, you can copy this URL, and add a folder name or page name to the end of it. Relativity displays this page for users, when they click the tab associated with the path to the custom page that you implemented. For more information, see Use external tabs as links to custom pages.
Note: If you add a folder name to the path, verify that folder contains the default page that you want displayed for users in the Relativity UI.
After you upload a custom page to an application, details view of the application lists it. You can add new custom pages, and link or unlink them from this view. For more information, see Create an application in Relativity.
Use the following steps to view or edit custom pages in an application:
- Open a workspace containing your application.
- Click the Relativity Applications tab.
- Click the name of the application that you want to view.
- Locate the Custom Page section on the details view of the application. It lists custom pages associated with the application.
- Perform one of the following tasks:
- Click New to display the Custom Page Layout, where you can select a new page.
- Click Link to associate an existing custom page with the application. On the Select Items dialog, select custom pages, and click Add. Next, select custom pages in the Selected Items section. Click Set to link the custom pages to your application.
- Click Unlink button to remove a custom page from the application.