View more context

 

dorsetdigital

LiteralField::create('ProductLink', '<a href="'.$product->Link().'">Link to the product</a>')

vanny

now just to give it a label 🙂

🏷️ (1)
vanny

hmmm, I can only get it to put in the left handle column $fields->addFieldToTab('Root.Main',LiteralField::create('View','<a target="_blank" href="' . $this->AbsoluteLink() .'">' . $this->AbsoluteLink() . '</a>'),'Name');

dorsetdigital

(and use the snippet @wmk posted to avoid the content being escaped)

dorsetdigital

What did you do in the end? It might help someone in the future