Of course, but where?
I tried wrapping your suggestion in <?php ?>
But I’ve probably misplaced something… This it your suggested code to add:
if ($this->field->name == ‘edit_link’) {
$this->field->link = $record->get_edit_link();
}
And here is the part of the template we are talking about (responsive list):
<?php if ( $record_count > 0 ) : ?>
<?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
<section id=”record-<?php echo $this->record->record_id ?>”>
<?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>
<?php if ( $this->field->has_content() ) : ?>
<div class=”pdb-field”>
<span class=”pdb-field-title”><?php echo $this->field->title ?></span>
<span class=”pdb-field-data”><?php echo PDb_FormElement::get_field_value_display($this->field); ?></span>
</div>
<?php else : // if the field is empty ?>
<?php endif ?>
<?php endwhile; // each field ?>
</section>
<?php endwhile; // each record ?>