Custom Link Setting
A custom link refers to a hyperlink that is specifically created or customized to meet particular requirements. It can point to any desired destination such as a webpage, document, or action within a software application, and can be tailored with parameters, tracking, or formatting to serve specific purposes.
An admin can set that who can visible this.


document.querySelectorAll(‘.portal-attachment-thumbnail-img’).forEach(function(img) {
img.addEventListener(‘error’, function () {
attachment_error_image(this);
});
});
const attachment_error_image = (attachment) => {
const parentElement = attachment.parentElement;
const defaultIcon = <span class="icon-file-empty"></span><span class="fw-attachment-ext">${escapeHtml(attachment.dataset.extension)}</span>;
parentElement.innerHTML = defaultIcon;
};