Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    It works, go over your work again and make sure you’ve done everything correctly. If you’re still having trouble post your specific problem here.

    Thread Starter chrisgeist

    (@chrisgeist)

    hi
    thanks for the reply. to make clear: i want to show the privat id with a link to edit the data in the frontend. if this is possible can u post what i have to change?

    thanks a lot

    chris

    Plugin Author xnau webdesign

    (@xnau)

    Ah, I thought you read it. Here’s the article: Adding an Edit Record Link to the Frontend List

    Thread Starter chrisgeist

    (@chrisgeist)

    hi xnau

    thanks a lot. great plugin by the way. i read it but i don´t have a lot of time and i have to say “i don´t get it”.

    i made a folder “templates” in my “theme” folder. copied pdb-list-default.php to this folder. also did the edit_link field and put in the link area “$record->get_edit_link()”

    i also changed this in the pdb-list-default.php
    —————————————————
    <tbody>
    <?php while ( $this->have_records() ) : $this->the_record(); // each record is one row ?>
    <?php $record = new PDb_Template($this); ?>
    <tr>
    <?php while( $this->have_fields() ) : $this->the_field(); // each field is one cell ?>
    <td class=”<?php echo $this->field->name ?>-field”>
    <?php
    /*
    * put the edit link URL into the link property of the field
    */
    if ($this->field->name == ‘edit_link’) {
    $this->field->link = $record->get_edit_link();
    }
    $this->field->print_value();
    ?>
    </td>
    <?php endwhile; // each field ?>
    </tr>
    <?php endwhile; // each record ?>
    </tbody>
    —————————————————

    i have no link in the Edit field on the frontend. do u think u can have a look on it? i could send u the login details.

    thanks a lot for your help

    chris

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show Private ID on frontend page’ is closed to new replies.