Skip to content

External Links


External Links allow an end user to specify by means of a jinja template a link that when displayed upon an items display page will add a button with a hyperlink to the url provided. External links can be assigned to: devices and software. This includes both at the same time.

  • Cluster context is under key cluster

  • Device context is under key device

  • Service context is under key service

  • Software context is under key software

To add a templated link within the Link Template field enter your url, with the variable within jinja braces. for example to add a link that will expand with the devices id, specify {{ device.id }}. i.e. https://domainname.tld/{{ device.id }}. If the link is for software use key software. Available fields under context key all of those that are available at the time the page is rendered.

Tip

To find out exactly what context is available for a given model, navigate to its API page. The JSON object that is reeturned from the API is the context data. The API path can be derived from the items detail page by suffixing API/v2 after the domain name, and before the path. i.e. for device one if the url is https://my-domain.tld/itam/device/1, its api path is https://my-domain.tld/api/v2/itam/device/1

Filters

Filters enable the ability to perform customizations of the jinja object. Some common filters are:

  • lower Convert entire string to lower case letters

  • upper Convert entire string to upper case letters

For a complete list of available filters please see the Built-in filters within the documentation.

Filters are simple to use and only require that you enter a pipe |, at the end of the jinja object key along with the filter name. For instance, To have a service name converted to lowercase letters, the jinja would be {{ service.name | lower }}.

About:

This page forms part of our Project Centurion ERP.

Page Metadata
Version: ToDo: place files short git commit here
Date Created: 2024-07-17
Date Edited: 2025-01-09

Contribution:

Would You like to contribute to our Centurion ERP project? You can assist in the following ways:

 

ToDo: Add the page list of contributors