Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Code Pro for Confluence Configuration screen has the following main settings:

  • Global configurationConfiguration
  • Profiles

Global configuration

...

Configuration

Enable or disable the required parameter to apply the settings. Click Save to apply confirm the changes to the settings.

<SCREENSHOT>Image Added

ParameterDefaultDescription
Restrict URL accessOffSelect this option to control whether or not URLs conform to the Confluence Whitelist, provided whitelisting is enabled. 
Help us improve the productOffEnable this option to allow us to collect some usage data that helps us improve our product. To learn more about what is being sent, refer to Analytics information.

Profiles

Profiles

...

comprise a common set of parameters that allow users to

...

add a profile in the

...

Code Pro macro. Some advantages of using profiles are:

  • Profiles allow user authentication required by some URLs to be hidden from page viewers and editors. Only Confluence administrators have access to this information.
  • Enables macro editors to quickly configure the macro by reusing a shared definition for URL access. 
  • Relative addressing can be used making the page content less likely to require changes when base URLs are relocated. 
    • Macro configured URL (that is not a full URL) is appended to the profile provided URL. The first part goes in the URL

...

    • to source code parameter of the profile. The second part (or ones like it) goes into each macro usage. For example, if source reference is something like https://bitbucket.org/bob_swift/gint/raw/tip/src/main/groovy/org/swift/tools/Gint.groovy, then a profile could be set up to reference all source in the Gint repository by configuring the profile: url=https://bitbucket.org/bob_swift/gint/raw/tip. Then the macro references would be relative like: src/main/groovy/org/swift/tools/Gint.groovy.


Info
titleImportant information:
  • Administrators can provide a maximum of 30 profiles to be used with the Code Pro macro.
  • Specify the required settings for a profile as name-value pairs separated with a '|' delimiter between each pair.
  • You can combine settings of other profiles. Use the '|' delimiter to combine name-value pairs with the specified profile settings. For example, you can create a profile that defines a customized style using HTM tags. This can be appended to another profile using just the profile name. When users specify the profile name (with the appended profile), the data is shown with the defined styles.
  • Learn more about the possible settings for a profile available in the Code Pro macro guide.


Image Added

The following actions can be performed:

  • Add new profiles directly. Enter the required values in the Name and Value parameters, and click Save.
  • Edit the profile by changing the given values and click Save to confirm the changes.
  • Remove a profile by deleting the name and value of the profile. Click Save to confirm the changes.