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

    (@xnau)

    OK, you may want to try the more recent version of the responsive template that is included with the latest version of the plugin.

    [pdb_list template=responsive show_count=true ]

    That will show the record count.

    It also does not show empty fields. If you want it to show empty fields, you’ll need to modify the template (copy it to your theme directory in a folder named “templates”) then remove the “if” statement that is around the field printing code, so it looks like this:

    <?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 ?>
            <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 endwhile; // each field ?>
          </section>
        <?php endwhile; // each record ?>
    Thread Starter ivaann21

    (@ivaann21)

    wonderful. thank you very much. this is an awesome plugin.
    the correct code for showing the record count is display_count

    question, is it possible for regular visitors to signup for notifications when a change is made to a record by its owner or anyone that has the id code?

    Plugin Author xnau webdesign

    (@xnau)

    Thanks for the correction…I should know better!

    Setting up custom notifications is possible, but it does require some developments skills. What you are proposing is reasonable complex, when you break it down into it’s pieces, there are several significant pieces of new code that will need to be developed.

    Thread Starter ivaann21

    (@ivaann21)

    i understand, this is a college work and i just finished.
    That complex work could be a v2 of the project and i would either read/investigate more or just hire you. =)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘need help with responsive php file’ is closed to new replies.