Participants Database
[resolved] Finding and using values in a list (2 posts)

  1. iHanky
    Posted 2 years ago #

    I managed to used certain values to build single pages.
    (ex. http://www.larmit.nl/caresse/index.php/dealers/dealerpagina/?pdb=23)
    Now I'm trying to build the map on this page: http://www.larmit.nl/caresse/index.php/dealers/
    using the information in my database. What code do I use to extract this information?
    This doesn't work:
    <?php $this->record->main->fields->city->print_value ?>
    <?php $this->record->main->fields->x_coordinaat->print_value ?>
    <?php $this->record->main->fields->y_coordinaat->print_value ?> etc
    probably because these are codes I use for the single-record-page.

    It has to fit in here:
    " style="position:absolute; left:<?php pdb-x_coordinate ?>px; top:<?php pdb-y_coordinate ?>px; z-index:10;"href="http://www.caresseboxsprings.nl/index.php/dealers/<?php pdb-ID ?>/" ><b></b><span><?php pdb-city ?></span>
    and the loop has to place all the cicrles at the right position.

    I'm kinda stuck here right now.

    Tnx in advance!


  2. xnau
    Plugin Author

    Posted 2 years ago #

    You just have to access the value property of the field object like this:


    You were very close!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Participants Database
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic