This article discusses the recommended way of using URLs, especially in correlation with profiles, in the HTML Html-bobswift and XSLT macros. This page also contains more information about the URLs that can be given, the order used to process URLs, and finally, how URLs must be used with profiles in the macros.
...
Click any of the links to know more:
- Types of URLs used in macros
- Precendence in URL processing
- Importance of URLs with respect to profiles
- How it all works
- Additional links
Anchorhtml_57_tutl_URLProfiles_types html_57_tutl_URLProfiles_types
URLs in macros
html_57_tutl_URLProfiles_types | |
html_57_tutl_URLProfiles_types |
...
URLs given in the macros are processed in the following order as explained:
Priority given | URL type | Description |
---|---|---|
1 | Application links | If the given URL is linked to a specific application like Bitbucket, GitLab, or GitLab, the macro does not require any user credentials, and processes and renders the given file. Refer to this article for information about application links. |
2 | Profiles | If Profile is specified, the macro appends the URL given here with the URL specified in the profile configuration, and accesses the location to render the required file. |
3 | Simple URLs | Lastly, if no application links or profiles were given, the URLs are processed as-is and the required file is rendered. |
Anchorhtml_57_tutl_URLProfiles_profiles html_57_tutl_URLProfiles_profiles
Importance of URLs with respect to profiles
html_57_tutl_URLProfiles_profiles | |
html_57_tutl_URLProfiles_profiles |
...
Note |
---|
|
...
Create or edit a page, add the HTML macro Html-bobswift macro (for this example), and edit to open the macro editor.
Enter a relative path (partial URL) to access the required file in Location to HTML data.
Note As mentioned, the macro appends the relative path in the Location of HTML data with the base URL given in the profile. If this absolute path is valid, the specified file is read and the HTML content is displayed, else, a network error is displayed.
Save the macro and publish the page to see the content.
...