It’s pretty much the same once you see the pattern, you just need to look out for the methods that set up the record and the field…so after $this->the_record()
you put the code that sets up the record edit link:
$record = new PDb_Template($this);
then, after the field is set up, put the code that adds the link to the field…so after $this->the_field()
and before the value gets printed with PDb_FormElement::get_field_value_display($this->field)
you put
if ($this->field->name == 'edit_link') {
$this->field->link = $record->get_edit_link();
}
Just be sure to keep your PHP tags straight and you’ll be good.