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

Home: Products: CMS Builder:
CMS Builder for Gallery

 

 


matrix
User

Jun 17, 2008, 2:51 PM

Post #1 of 9 (1557 views)
Shortcut
CMS Builder for Gallery Can't Post

I thought I could do this, but maybe not.

Building a gallery for an artist, and what I need is a section where the list viewer displays thumbnail images for a gallery of images. Each thumbnail is linked to the detail page where the larger image is displayed.

Did that. So far, so wonderful.

But now I'm stuck on the Detail Page. I really need Next & Previous links on each Detail Page for sequential navigation through the individual image pages if someone doesn't want to return to the section list (thumbnail display) each time.

Is there any way to do this and maintain the thumbnail display with the 15 or 20 images we anticipate for each section?

Please say yes and tell me what I've been missing. I think that all the postings I've read refer to the List Page only, and we need that page to work as described.

Thank you!
Happy Interactive Tools product user since 1999


Dave
Staff / Moderator


Jun 18, 2008, 11:09 AM

Post #2 of 9 (1520 views)
Shortcut
Re: [matrix] CMS Builder for Gallery [In reply to] Can't Post

Hi Matrix,

There's no automatic way to do this. If you can take it as far as you can, then create a mockup of how the image detail page should look with prev and next links, I can help you with it.

Just send me the urls, FTP and CMS login details to dave@interactivetools.com (email, don't post login details to the forum) and I'll see what I can do and post back here for everyone who wants to do the same kind of thing.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com


matrix
User

Jun 18, 2008, 2:09 PM

Post #3 of 9 (1502 views)
Shortcut
Re: [Dave] CMS Builder for Gallery [In reply to] Can't Post

Wow, this is great! I'm really excited about our possibly getting next and previous links for these pages...would make this full-fledged gallery software for those who don't want all those comments and rating systems...professional artists and photographers, for instance.

Excellent idea for news stories, too, keeping visitors around.

Email to you with access information follows.

Thank you so much!!!
Happy Interactive Tools product user since 1999


Dave
Staff / Moderator


Jun 19, 2008, 11:34 AM

Post #4 of 9 (1477 views)
Shortcut
Re: [matrix] CMS Builder for Gallery [In reply to] Can't Post

Hi Matrix, I've emailed you about this. Feel free to email me back if there's any other issues.

This was another case of wanting << prev and next >> links on detail pages so users can page through without having to go back to the list page.

A lot of people have been asking for this so I've put together an experimental new feature that supports it. Note that this may not work well sections with many records (1000+) but it's a good work around for now.

Here's how to do it. Add this code to your viewer file or /lib/viewer_functions.php (it will be in the next release):


Code
// Note: This function is EXPERIMENTAL and may change in future 
function getPrevAndNextRecords($options) {

// error checking
if (!@$options['tableName']) { $errors .= "No 'tableName' value specified in options!<br/>\n"; }
if (!@$options['recordNum']) { $errors .= "No 'recordNum' value specified in options!<br/>\n"; }

// load ALL records matching
list($records, $metaData) = getRecords(array(
'tableName' => $options['tableName'],
));

// get prev and next records
$prevRecord = array();
$nextRecord = array();
$foundRecordNum = false;
foreach ($records as $record) {

// set next record
if ($foundRecordNum) { $nextRecord = $record; break; }

// set prev record
if ($record['num'] == $options['recordNum']) { $foundRecordNum = true; }
if ($foundRecordNum) { $prevRecord = @$lastRecordSeen; }
$lastRecordSeen = $record;
}

return array($prevRecord, $nextRecord);
}


Then add this code to the bottom of step 1 in your detail viewer:


Code
list($prevRecord, $nextRecord) = getPrevAndNextRecords(array( 
'tableName' => 'news',
'recordNum' => getNumberFromEndOfUrl(),
));


Then add this where you want your prev/next links to go:


Code
<?php if (@$prevRecord): ?> 
<a href="<?php echo $prevRecord['_link'] ?>"> &lt;&lt; <?php echo $prevRecord['title'] ?></a>
<?php endif; ?>

<?php if (@$nextRecord): ?>
<a href="<?php echo $nextRecord['_link'] ?>"><?php echo $nextRecord['title'] ?> &gt;&gt;</a>
<?php endif; ?>


Hope that helps, let me know if you have any questions or problems with this.

Dave Edis - Senior Developer
interactivetools.com


matrix
User

Jun 19, 2008, 1:06 PM

Post #5 of 9 (1469 views)
Shortcut
Re: [matrix] CMS Builder for Gallery [In reply to] Can't Post

This is exactly what we needed! It is perfect.

Thank you so much. Having the ability to add this to the detail pages opens up a whole new world of possibilities. For instance, in addition to the gallery feature we're building, it's a great way to prompt visitors to move on to the next article.

Your support absolutely can not be beat. The BEST!

Thank you.
Happy Interactive Tools product user since 1999


chassa2556
User

Jul 1, 2008, 7:54 AM

Post #6 of 9 (950 views)
Shortcut
Re: [matrix] CMS Builder for Gallery [In reply to] Can't Post

Hi Matrix

Could you publish a link to show how this works on the actual site please? I'd be interested to see how the interface works.

thanks


Dave
Staff / Moderator


Jul 1, 2008, 8:20 AM

Post #7 of 9 (948 views)
Shortcut
Re: [chassa2556] CMS Builder for Gallery [In reply to] Can't Post

This is an experimental feature, but basically it lets you add links to the bottom of your pages like this:

<< prev record - next record >>

That let you page through the records without having to go back to the list page. What the function does is get you the links for those. The text can say whatever you want (or be a graphic).

Hope that helps.

Dave Edis - Senior Developer
interactivetools.com


matrix
User

Jul 1, 2008, 9:46 AM

Post #8 of 9 (942 views)
Shortcut
Re: [chassa2556] CMS Builder for Gallery [In reply to] Can't Post

Hi Chassa,

I'd be happy to post the URL, but won't do that without our client's permission. However, even though Dave points out that this solution is experimental, it works like a charm for us. This client is very actively using 10 "albums" contained in a "gallery" all produced through CMS Builder.

I don't know whether this idea is relevant for your needs, but we researched just about every photo gallery option we could find, open source and otherwise. Installed several, but came back to CMS Builder because it is, hands down, the easiest to customize the look and feel of to slip into an existing design.

It seems that every gallery out there has a different template system applied (that is, assuming the appearance is configurable), and for long term, reliable solutions, we've found that it's much smarter and more cost-effective to go with Interactive Tools. This way we don't have to bend the carefully thought out, user-friendly design of the whole site to fit a specific product...galleries, etc.

How we did this was to simply present the thumbnails in a list page, each linked to a detail page with the image and lots of content. With the addition of the next and previous links for each detail page, it's perfect.

So, the interface only requires the artist to upload a new work for each new page, add details and content in a couple of additional text box fields, and publish. It's especially helpful that the detail pages can be re-ordered by dragging. Very nice features.

Hope this helps.
Happy Interactive Tools product user since 1999

(This post was edited by matrix on Jul 1, 2008, 9:47 AM)


chassa2556
User

Jul 2, 2008, 1:21 AM

Post #9 of 9 (920 views)
Shortcut
Re: [matrix] CMS Builder for Gallery [In reply to] Can't Post

Thanks very much matrix I have just built our first site in CMS builder but got a bit out of my depth so IT had to take over.

But I agree I like the program I just need to see some good practical solutions. I also need to build a site myself from the ground up so I get an idea of the logic. I'd be really grateful if you could get the go ahead from your client to send me the link. charles.dewey@gmail.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