SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

in the card component, can we add a new row level parameter that lets us choose if the clickable link can be opened in a new tab ?

Open alexisrc1 opened this issue 10 months ago • 1 comments

What are you building with SQLPage ?

A portal for other app

What is your problem ? A description of the problem, not the solution you are proposing.

Currently, in the card component, we cannot choose if the clickable link is opened in a new tab

Additional context POC for A

alexisrc1 avatar Feb 20 '25 21:02 alexisrc1

get the orgininal card.handlebars file vom github save it in templates folder and name it mycard.handlebars (or similar) Line 75ff original is: {{#if link}} {{/if}}

change that to {{#if link}} {{#if linktarget}} target="linktarget"{{/if}} {{/if}}

now you can use linktarget as parameter with _blank or _top, for a card link. use then select 'mycard' as component ... instead of select 'card' as component ...

if the link should something download, not open new content or new page, then change code to {{#if link}}{{#if linkdownload}} download{{/if}} {{/if}} or if you need to give filename for download {{#if link}}{{#if linkdownloadname}} download="linkdownloadname"{{/if}} {{/if}} but you cant combine that, target and download can't be on same

hmm the < a > or < / a > are gone, cant fix it

T-Doschke avatar Jul 29 '25 21:07 T-Doschke