I'm working on a website for a florist that has plants broken down by categories and subcategories. I've set up a section in CMSB that shows the categories:
http://thecoachesloft.com/plants.php. Not all of these have content for the subcategories yet, but Vines (2 subcategories) and Shrubs (1 subcategory) do. If you click on the links on this page, you should see a page that lists the relevant subcategories, but I keep getting the message "No records were found!"; for example:
http://thecoachesloft.com/plantsSubcategory.php?title=Vines.
Any idea why this is, please?
======
Display code in plantsSubcategory.php:<?php foreach ($product_subcategoriesRecords as $record): ?>
<p><a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a><br/>
Main Category: <?php echo $record['main_category'] ?><br/>
Light: <?php echo $record['light'] ?><br/>
Plant Care: <?php echo $record['content'] ?><br/>
Facts: <?php echo $record['facts'] ?><br/>
<!-- STEP 2a: Display Uploads for field 'main_image' (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 ($record['main_image'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" />
<?php elseif ($upload['isImage']): ?>
<?php else: ?>
<?php endif ?>
<?php endforeach ?>
<!-- STEP2a: /Display Uploads -->
<hr/>
<?php endforeach ?>
<?php if (!$product_subcategoriesRecords): ?>
<p>No records were found!</p>
<?php endif ?>
Nigel Gordijk
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net