Change to Prev and Next links

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 28, 2008   (RSS)

By avrom - July 27, 2008

HI Dave,

What I have is the typical setup with the Prev and Next links, i.e.

<?php if ($schedulesMetaData['prevPage']): ?>
<a href="<?php echo $schedulesMetaData['prevPageLink'] ?>">&laquo; Prev</a>
<?php else: ?>
&laquo; Prev
<?php endif ?>

What I actually want to display instead of the previous or next link, is the "Month" value associated with the Prev or Next links. This would be the "month" value from the record "schedule" i.e.

<?php echo date("F", strtotime($record['schedule'])) ?>

So if the current schedule is for "August" I would want to display "July" as the previous link, and "September" as the next link.


Thank you Dave,

Avrom :))