major
nice-to-have
defect
major
enhancement
#21803 introduces a renderer for external links—along with a view for the toolbar. However, this view cannot be styled to match the other buttons in the toolbar or sidebar.
Usage
customButtons.xml:
#!xml
<?xml version="1.0" encoding="utf-8" ?>
<template>
<params>
<param name="renderer"
optional="true"
/>
<PARAM name="entryRenderer"
optional="true"
/>
<PARAM name="resPrefix"
value="layouts.themes.modern.ToolRowView"
/>
</PARAMS>
<group>
<views>
<view class="com.top_logic.layout.component.configuration.ExternalLinkViewConfiguration"
name="tlHome"
link="https://www.top-logic.com/"
image="theme:layouts.demo.tlHome"
label-key="${resPrefix}.tlHome"
renderer="${entryRenderer}"
/>
</VIEWS>
</GROUP>
</template>
Code Migration
New optional parameter ` entryRenderer ` in the layouts
- customButtons.xml
- debugButtons.xml
- defaultButtons.xml
- personalizeButtons.xml
- searchButtons.xml
- helpButton.xml
#!xml
<param name="entryRenderer"
optional="true"
/>
In an ExternalLinkViewConfiguration, this renderer ensures that the link's style matches that of the tool row or sidebar.
Test
- Link to the Top Logic home page in tl-demo.