Warning | ||
---|---|---|
| ||
Please note that thethe URL user andand URL user password parameters are deprecated and will be removed on March 31, 2022. We recommend using profiles to access your data from remote locationsparameters were removed in 3.4.2 (see Deprecation notice: URL user and URL user password parameters). We recommend using profiles to access external data. |
Note | ||
---|---|---|
| ||
This article is not applicable for to the following macros:
|
...
Info | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Before you begin:
|
...
You can work with URLs in two ways where you can:
- Use an absolute URL in the profile
- Use a partial URL in the profile
Anchormd_URLProfile_absURL md_URLProfile_absURL
Use an absolute URL
md_URLProfile_absURL | |
md_URLProfile_absURL |
...
- Add the Graphviz macro, or edit an existing macro on a page.
- Select the newly created profile, in this case BitURL, from the Profile drop-down, and click Save.
...
Anchormd_URLProfile_partialURL md_URLProfile_partialURL
Use a partial URL
md_URLProfile_partialURL | |
md_URLProfile_partialURL |
You can create a profile by providing a partial URL for the Graphviz content, and enter the relative path to the Graphviz file in the Graphviz macro Graphviz macro.
Navigate to CONFLUENCE ADMINISTRATION > Manage apps > BOB SWIFT CONFIGURATION > Graphviz > Profiles.
Click Add Profile.
- Enter a unique name for the profile in Profile name.
- Select URL from the options in Profile type.
Enter the base URL in the URL text box. A base URL is a part of the path that specifies the location that the macro must access.
Click Save profile to create a profile.
...
To use the profile in a Confluence page:
- Add the Graphviz macro Graphviz macro, or edit an existing macro on a page.
- Select the newly created profile in Profile in the macro editor.
- Enter the relative path of the Graphviz file in the URL to Graphviz file parameter. The relative URL is appended to the base URL specified in the profile to create an absolute path to the file to be rendered.
- Click Save.
...
- For example, consider:
Base URL given in the profile:https://api.bitbucket.org/2.0
Relative path given in the macro editor:/repositories/appfire/ac-app-dist/src/17f199444d1386c543ac642e9155b396aaeca403/sample.txt
The macro combines the two to refer to the absolute path to the required file ashttps://api.bitbucket.org/2.0/repositories/appfire/ac-app-dist/src/17f199444d1386c543ac642e9155b396aaeca403/sample.txt
. - Click Save.
Info | ||
---|---|---|
| ||
|