Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter scott2461

    (@scott2461)

    Aha!

    I added the following code to class.output.php:

    public function getLatitude()
    	{
    		if ($this->getAddresses())
    		{
    			foreach ($this->getAddresses() as $address)
    			{
                                    if ($address->latitude != NULL) $out = $address->latitude;
    			}
    		}
    		return $out;
    	}

    And then included <a href='<?php echo $entry->getLatitude() ?>'><?php echo $entry->getCardImage() ?></a>

    in my custom template, and I think that did the trick…

    Thread Starter scott2461

    (@scott2461)

    Ok, for an update, I managed to get the latitude field to come up with this:
    <a href='<?php echo $address->latitude ?>'><?php echo $entry->getCardImage() ?></a>

    Now the problem is that if there are multiple Connections Profiles on a page, this template only brings up one latitude (web address) for all of them, and all the pictures link to the same place. Not sure where to go from here….

Viewing 2 replies - 1 through 2 (of 2 total)