hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Programatic links not having a label

Open Coysh opened this issue 6 months ago • 1 comments

Question

I can create the link - but the only thing being created is the URL not the Label or Open new tab

For example:

$hyper = new \verbb\hyper\links\Url();
$hyper->linkText = 'Test''
$hyper->linkValue = 'https://example.com'
$hyper->newWindow = true;
$entry->setFieldValue('theLink', $hyper);
Image

Additional context

No response

Coysh avatar Jul 11 '25 15:07 Coysh

That looks like a native link field, not Hyper. But Hyper expect a collection of links $entry->setFieldValue('theLink', [$hyper]);

engram-design avatar Jul 15 '25 10:07 engram-design