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

Home: Products: CMS Builder:
Multiple View in V.1.15

 

 


oams
User

May 23, 2008, 5:58 AM

Post #1 of 3 (193 views)
Shortcut
Multiple View in V.1.15 Can't Post

Hi,

Trying to set up a catalogue where products can be showed in multiple categorie.
I have a table "categories" and "works". I list the categories in the "works" table with a Category1 and a Category2 list field.

In the viewers I put the

Code
'where' => 'workCategory1="2" OR workCategory2="2"'

etc.. option. It works perfectly in the viewers that are set in the "works" table (worksList.phpand worksPage.php).

The issue starts when I try to put the other viewers in action (worksStageList.php, worksStagePage.php). The list is correct but the detail link goes to worksPage.php instead of the wanted worksStagePage.php. If I hardcore it in the worksStageList.php, the worksStagePage.php show always the first record of the list, even if I chose the third record.

I need 6 of these different viewers,

Thanks for your help,
Jeremy


Dave
Staff / Moderator


May 23, 2008, 12:25 PM

Post #2 of 3 (182 views)
Shortcut
Re: [oams] Multiple View in V.1.15 [In reply to] Can't Post

Hi Jeremy,

My first guess is your linking directly to the viewer and not passing the record number you want to view. You can create a custom link like this that works just like "_link". Note that $record might have a different name in your viewer, use that name instead.


Code
<a href="customViewer.php?<?php echo $record['_filename'] ?>-<?php echo $record['num'] ?>">View Details</a><br/>


This should create a link like this:
customViewer.php?Your_Work_Title_Here-123

Give that a try and let me know if it works.

Hope that helps! :)

Dave Edis - Senior Developer
interactivetools.com


oams
User

May 24, 2008, 6:19 AM

Post #3 of 3 (172 views)
Shortcut
Re: [Dave] Multiple View in V.1.15 [In reply to] Can't Post

Thanks Dave, works perfectly,
J

 
 
 


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