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'] ?>">« Prev</a>
<?php else: ?>
« 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 :))
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'] ?>">« Prev</a>
<?php else: ?>
« 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 :))
Re: [virgodesign] Change to Prev and Next links
By Dave - July 28, 2008
Hi Avrom,
Take a look at this thread:
http://www.interactivetools.com/forum/gforum.cgi?post=63093#63093
It lets you link to the prev and next record by number, and loads them so you can display fields from them.
Hope that helps!
Take a look at this thread:
http://www.interactivetools.com/forum/gforum.cgi?post=63093#63093
It lets you link to the prev and next record by number, and loads them so you can display fields from them.
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com