jmcria
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] search and edit link questionI noticed that $Record is never defined in pdb-list-detailed.php so I added
$record = new PDb_Template($this);
just below
while ( $this->have_records() ) : $this->the_record();
Everything works fine now!
Thank you. You have a great plugin!Forum: Plugins
In reply to: [Participants Database] search and edit link questionYou will have to be more specific with the template edit code. Whenever I insert the “edit_link” if statement into the detailed template (sortcode: [pdb-list template=custom2]) the search goes into an endless loop regardless of which side of the echo command. Custom2 template works as expected when all of my edits are commented out.
Note: the // comment tag in the code snippet from the earlier post is out of place but that has been corrected.
Thank you again and sorry I am slow. Participants Database will be a valuable addition to our website.
Forum: Plugins
In reply to: [Participants Database] search and edit link questionI tried the edit_link edit on on the detailed template but I must have it in the wrong location. I put it on either side of the “echo PDbFormElement… line without success. This the code:
` <tbody>
<?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
<tr>
<?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>
<td>
<?php
echo PDb_FormElement::get_field_value_display($this->field);
// IF STATEMENT ADDED FOR CUSTOM2
if ($this->field->name == ‘edit_link’) {
$this->field->link = $record->get_edit_link();} ?>
//
</td>`As you can see I am not very strong on php. If you could send me a code snippet showing where the IF statement goes would be very helpful.
Thank you for the CSV download directions. You have a large site and I thought I looked everywhere.
Thank you for your quick response