Hi guys,
All record links on my list page are only linking to the first record in the list and not to each individual record.
I'm using this at the top:
// load records from 'blog'
list($blogRecords, $blogMetaData) = getRecords(array(
'tableName' => 'blog',
'perPage' => '4',
'loadUploads' => true,
'allowSearch' => false,
));
And the standard code for the rest:
<?php foreach ($blogRecords as $record): ?>
<?php foreach ($record['image'] as $index => $upload): ?>
<?php if (!@$counter++): ?>
<img src="<?php echo htmlencode($upload['urlPath']) ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" class="img-responsive"/>
<?php endif ?>
<?php endforeach ?>
</blockquote>
<h3><?php echo htmlencode($record['title']) ?></h3>
<?php echo $record['content']; ?><br/>
_link : <a href="<?php echo $record['_link'] ?>"> Read more >></a><br/>
<hr/>
<?php endforeach ?>
<?php if (!$blogRecords): ?>
No records were found!<br/><br/>
<?php endif ?>
Any ideas what could be causing this bug?