...
This article illustrates how to create a profile using a URL in the HTML for Confluence macros using a URL.
Info | ||
---|---|---|
Before you begin:
|
There are three two ways to work with URLs where you can use:
- An absolute URL in a profile
- A partial URL in a profile
Info |
---|
For this example, let's consider using profiles with the HTML macro. The screenshots illustrate where the relevant parameters are to be given. Specify information in the profile window and macro editor as per your requirement. |
Anchorhtml_57_HowTo_CompleteURL html_57_HowTo_CompleteURL
Using an absolute URL in a profile
html_57_HowTo_CompleteURL | |
html_57_HowTo_CompleteURL |
...
title | Try this for newer Confluence versions |
---|
You can create a profile by providing the complete URL for the HTML/XML content.
Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > HTML > Profiles.
in the macro editor.
Select > Manage apps, either search for HTML for Confluence or scroll to Bob Swift Configuration, and click HTML to view app configuration.
Tip title Try this for older Confluence versions! Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > HTML > Profiles.
Click Add Profile.
- Enter a unique name for the profile in the Profile name text box. For this example, enter BitURL in the text box.
- Select URL from the options in Profile type.
Enter https://bitbucket.org/bob_swift/gint/raw/9c1b737cf0ff28ddf7cbbd199685e533d310ce9f/README.html, for example, in the URL text box.
Click Save profile to create the profile.
...
- Add the HTML macro or edit an existing macro on the page.
- Select BitURL from Select the newly created profile from the Profile list and then, click Save.
...
You can create a profile by providing a partial URL to access the remote location and entering relative path to the relevant file in the HTML macro.
Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > HTML > Profiles.
the macro editor.
Select > Manage apps, either search for HTML for Confluence or scroll to Bob Swift Configuration, and click HTML to view app configuration.
Tip title Try this for newer Confluence versions Navigate to CONFLUENCE ADMINISTRATION > Settings > ATLASSIAN MARKETPLACE > HTML > Profiles.
Click Add Profile.
- Enter a unique name for the profile in the Profile name text box. For this example, enter BitURL in the text box.
- Select URL Select URL from the options in Profile type.
Enter https://bitbucket.orgthe 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 the profile.
...
- Add the HTML macro or edit an existing macro on the page.
- Select BitURL Select the newly created profile from the Profile list in the editor.
- Enter the relative path to the /bob_swift/gint/raw/9c1b737cf0ff28ddf7cbbd199685e533d310ce9f/README.html file, for example,of the HTML file in the Location of HTML data 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.
Info | ||
---|---|---|
| ||
|