• Downloaded your plug-in yesterday. I sure it will work for our group.

    I have a few members added and followed the tutorial “Adding an Edit Record Link to the Frontend List” I have gone over the code a couple of times and not seeing any errors that I can recognize. The list displays fine and the edit-link button is fine and works.
    When I click the edit button the page changes to the edit page (short code [pdb_record]) with the url string “edit-qb-member/?pdb=1”, but I get a No record was found message.

    If I change the string to “display-qb-member/?pdb=1” the display record page shows with data. The record was found.

    Thanks for your help
    Glenn

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

    (@xnau)

    You’re not getting the right URL for your record edit link. The URL should have the private ID code, it will look something like: ?pid=WKE45

    Also make sure the “Participant Record Page” is properly configured, under the “Record Form Settings” tab in the plugin settings.

    Thread Starter glenneg

    (@glenneg)

    Thanks .. I recheck again. Still no joy.
    This is the code I added to my custom template file.


    <?php
    /*
    * The Edit link URL here.
    */
    if ($this->field->name == ‘edit_link’) {
    $this->field->link = $record->get_edit_link();
    }
    $this->field->print_value();
    ?>

    Do I need to use a different function than get_edit_link() ?
    I can manually add “edit-qb-member/?pid=BWXM3” and it works.
    My edit button from the list has the url as edit-qb-member/?pdb=2

    How do I change that?

    To confirm I have the following settings
    Record Form Settings – Participant Record Page = Edit QB Member
    this page has the short code = [pdb_record]

    List Display Settings – Single Record Link Field = Edit (edit_link)
    Single Record Page = Edit QB Member (as Above)

    Thanks again
    glenn

    Thread Starter glenneg

    (@glenneg)

    Is this problem still in the que? Should I resend this a different way?

    Thanks
    -glenn

    Plugin Author xnau webdesign

    (@xnau)

    The “single record link field” should be a different one than the one you’re trying to put the edit link on.

    Thread Starter glenneg

    (@glenneg)

    I’m sorry I don’t understand. Are you saying that this code is wrong.


    <?php
    /*
    * The Edit link URL here.
    */
    if ($this->field->name == ‘edit_link’) {
    $this->field->link = $record->get_edit_link();
    }
    $this->field->print_value();
    ?>

    I should use a different field like “first_name” other than the field I created by way of the tutorial example.

    Sorry just don’t understand your statement “The “single record link field” should be a different one than the one you’re trying to put the edit link on.”

    Thanks
    -glenn

    Plugin Author xnau webdesign

    (@xnau)

    The “single record link field” is a plugin setting under the “list” tab. Make sure that is not the same field as you’re trying to put the edit link on.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Edit Record Link to the Frontend List – Tutorial’ is closed to new replies.