Re: [Capt'n Morgan] Help creating intitial section structure
Thanks, Dave.
This is my source for that. I can't quite figure out where to put your code, can you help?
I'm sure I can take out the thumbnail and download code too, but I haven't got that far.
<!-- STEP3: Display Uploads from 'masthead_image' (Paste this where you want your uploads displayed) -->
<!-- Upload Program Fields : num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath -->
<!-- Upload Image Fields : isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight -->
<!-- Upload Info Fields : info1, info2, info3, info4, info5 -->
<?php if ($about_usRecord): ?>
<?php foreach (getUploads($about_usOptions['tableName'], 'masthead_image', $about_usRecord['num']) as $upload): ?>
<?php if ($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 ?>
<?php endif ?>
<!-- STEP3: /Display Uploads from 'masthead_image' -->