Link field - detect link type

Hi,

Before I start working on it, is there a method for detecting the type of link that has been selected in the Kirby 4 Link Field? E.g. whether it is url, page, file etc. This is primarily for styling purposes.

Thanks!

Not yet, but see example implementation here: kirby-spielzeug/config/fieldMethods.php at 6d9ebb6cc7de4826ac47c66e525123b2de20a670 · tobimori/kirby-spielzeug · GitHub

1 Like

That’s perfect - thanks for the link