Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Next/Previous links on Page Viewer Page

 

 


_kate_
User


Jun 8, 2008, 4:09 AM

Post #1 of 5 (647 views)
Shortcut
Next/Previous links on Page Viewer Page Can't Post

The code makes a previous/next button for the list page, however I would like this on the Page Viewer Page.

I am making a portfolio and I would like a previous/next link that would link to the previous/next record.

Can this be done?


sagentic
User


Jun 8, 2008, 9:13 AM

Post #2 of 5 (637 views)
Shortcut
Re: [AgentBristow] Next/Previous links on Page Viewer Page [In reply to] Can't Post

Use a List Viewer Page instead and only show one record at a time.


_kate_
User


Jun 8, 2008, 9:22 AM

Post #3 of 5 (634 views)
Shortcut
Re: [sagentic] Next/Previous links on Page Viewer Page [In reply to] Can't Post

That works perfectly! Thanks for your help :)


_kate_
User


Jun 8, 2008, 10:49 AM

Post #4 of 5 (628 views)
Shortcut
Re: [AgentBristow] Next/Previous links on Page Viewer Page [In reply to] Can't Post

The prev/next links on the Page viewer page are working fine now I converted it to a List Page, however I have just picked up on a problem - since I made this change code on another page is no longer working properly.

I have a full list page that displays all of the items in the portfolio, and the image links to the page with all the details about that item. That was working fine until I made the above change - now it just keeps linking to record #1 and not the correct information. Here is the code I am using >

<?php foreach ($listRows as $record): ?>
<?php if ($record['type'] != "Website Design") { continue; } ?>

<h7><?php echo $record['client_name'] ?></h7><br />

<!-- image -->
<?php if ($record): ?>
<?php foreach (getUploads($options['tableName'], 'screenshot', $record['num']) as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="View Project Details" /><br/>
<?php elseif ($upload['isImage']): ?>
<a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['urlPath'] ?>"></a><br/>
<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
<!-- image -->
<a href="<?php echo $record['_link'] ?>">> Project Details</a><br/>
Live Website: <a href="<?php echo $record['website'] ?>" target="_blank"><?php echo $record['website'] ?></a>
<br /><br /><br />
<?php endforeach ?>


Dave
Staff / Moderator


Jun 9, 2008, 11:40 AM

Post #5 of 5 (585 views)
Shortcut
Re: [AgentBristow] Next/Previous links on Page Viewer Page [In reply to] Can't Post

Hi AgentBristow,

Can you post an url that shows the problem? (Or email dave@interactivetools.com if the urls are private).

Thanks!

Dave Edis - Senior Developer
interactivetools.com

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4