• Resolved nvanzijl

    (@nvanzijl)


    Hi,

    I’m not an experienced programmer and find it hard to understand how to do the modifications in the pdb-single template.

    What I need is a simple display of the following data:
    first_name, last_name
    address, number
    zip, city

    So the output would be sort of:
    John Doe
    Oaklane 25
    3000 Gotham City

    If you just give me a hint how to do this then I will be able to work it out in more detail.

    Many thanks!

    https://www.ads-software.com/plugins/participants-database/

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

    (@xnau)

    It’s hard to give instructions for this if you don’t already know your way around a PHP file or how to use CSS to change formatting…I would suggest trying the “bootstrap” template, that may get you closer to your goal.

    [pdb_single template=bootstrap]

    Thread Starter nvanzijl

    (@nvanzijl)

    I fixed it with the business template. I have removed the top part of the template which I could not get working.

    I used the lines from class=”business-photo en below and did some editing on the class='”business-address”>

    Template now looks like this:

    ‘<?php
    /*
    * template for displaying a business detailed view
    *
    * single record template
    */
    // get the template object for this record
    $this_business = new PDb_Template($this);
    ?>

    <div class=”wrap <?php echo $this->wrap_class ?>”>
    <?php if ($this_business->has_content(‘photo’)) : ?>
    <div class=”business-photo”>
    <?php $this_business->print_field(‘photo’) ?>
    </div>
    <?php endif ?>
    <div class=”business-info”>

    <class=”business-address”>
    <b> <?php $this_business->print_field(‘first_name’) ?> <?php $this_business->print_field(‘last_name’) ?></b>
    <?php $this_business->print_field(‘address’) ?> <?php $this_business->print_field(‘nummer’) ?>
    <?php $this_business->print_field(‘zip’) ?> <?php $this_business->print_field(‘city’) ?>
    <?php $this_business->print_field(‘phone’) ?>
    <?php $this_business->print_field(’email’) ?>

    <div class=”business-details”>
    Relatie: <?php $this_business->print_field(‘group’) ?>
    </div>

    </div>’

    Simple, but does the job for me ??

    Plugin Author xnau webdesign

    (@xnau)

    Great…you found the tutorial, glad it worked for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need help on the pdb single template’ is closed to new replies.