
Chris
Staff

Aug 30, 2010, 3:18 PM
Post #8 of 15
(1816 views)
Shortcut
|
Hi kcmedia, Jason isn't in the office today, but maybe I can help. This may be unrelated, but I noticed what seems like a typo in the code above. Should this read "sponsors"?
$sponsorList = trim($the_eventRecord['sponosors'],"\t"); I took a look at your the-event.php code and noticed that you aren't using $sponsorRecords anywhere. You'll need to add some code where you want your images in your page to loop over the sponsors you've selected and display their uploads:
<?php foreach ($sponsorRecords as $sponsor): ?> <!-- STEP 2a: Display Uploads for field 'uploads' (Paste this anywhere inside STEP2 to display uploads) --> <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --> <?php foreach ($sponsor['uploads'] as $upload): ?> <?php if ($upload['hasThumbnail']): ?> <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/> <?php elseif ($upload['isImage']): ?> <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/> <?php else: ?> <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/> <?php endif ?> <?php endforeach ?> <!-- STEP2a: /Display Uploads --> <?php endforeach ?> I hope this helps. Please let me know if you have any questions. Chris
|