HTML Tools preferences

HTML tools in P4V are tied to the feature property P4V.Features.HTMLTools.

For details, see the topic Feature-related P4V properties in the Helix Core Server Administrator Guide.

When this property is enabled (which is the default), P4V can run in the following modes:

Note

For custom HTML pages that you add using HTML tools, P4V provides additional security by letting you specify the base URLs you want to permit. For example, if the following base URLs are permitted, P4V only accepts definitions and pages that match these base URLs:

  • http://www.toolserver.com/customtabs
  • http://www.toolserver.com/visualtools
  • http://www.toolserver.com/pages
  • http://www.toolserver.com/tabs

A URL that does not start with the base path listed in these URLs fails with a security exception error. However, local files are exempt.

HTML tools are enabled by default, and you can enable the mode that allows you to try using the demonstrations of some tools.

  1. Go to Edit > Preferences (Windows) or P4V > Preferences (Mac).
  2. In the Preferences dialog, click HTML Tools tab, and check Run HTML Tools in demo mode. The demonstration mode will be off the next time you start P4V.

If you want to restrict the locations from which HTML tools can run:

  1. Select the Only accept HTML Tools from check box.

  2. In the Accepted BaseURL dialog, in the URL field, specify a URL to permit it and click OK.
  3. To the right of the Permitted BaseURLs filed, click Add.
  4. Repeat steps b and c as needed.
  5. Click OK.
  6. Restart P4V.
Note
  • Your administrator can override your list of URLs by setting the P4VJS.HTMLAllowList property. You can use the Copy to Clipboard button to help you email a properly-formatted list of URLs for your administrator to consider allowing. (Your administrator might want to see P4VJS deployment properties in Helix Core Server Administrator Guide.)

  • HTML Tools support cookies. If you want to delete cookies, use Preferences > HTML Tools > Advanced Settings > Delete all cookies.