Linked records ?

17 posts by 4 authors in: Forums > CMS Builder
Last Post: November 21, 2013   (RSS)

By Rewmer - October 22, 2013

Hi Ross, sure. Here it is the detail page record loader..

<?php   $libraryPath = 'cms/lib/viewer_functions.php';   $dirsToCheck = array('/home/genetic/public_html/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
  // load record from 'avaliable_royal_pythons'   list($avaliable_royal_pythonsRecords, $avaliable_royal_pythonsMetaData) = getRecords(array(    
  'tableName'   => 'avaliable_royal_pythons', 
  'where'       => whereRecordNumberInUrl(0),   
  'loadUploads' => true,     'allowSearch' => false,   
  'limit'       => '5',   ));   $avaliable_royal_pythonsRecord = @$avaliable_royal_pythonsRecords[0];
// get first record   if (!$avaliable_royal_pythonsRecord) { dieWith404("Record not found!"); }
// show error message if no record found

?>


Regards

Andy

By Rewmer - October 25, 2013

Any thoughts anyone ?

By Damon - October 30, 2013

HI Andy,

Did you get this working?

If not, can you send in a Support Ticket with CMS Builder login and FTP details so I can look into this further:
https://www.interactivetools.com/support/email_support_form.php?priority=free

Please include a link to this forum post:
http://www.interactivetools.com/forum/forum-posts.php?Linked-records-79068

Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Rewmer - November 11, 2013

Any progress as yet Damon on the support ticket ?

By Damon - November 13, 2013

Hi,

Just sent you an email with a working example. What I did was use search results for the detail page so you could link to it using the clutch no.

Hope that was what you were after. If not, reply to me emails and I can help further.
Thanks!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Rewmer - November 21, 2013

Hi Damon, yep thats got it, just what I was after. Thanks very much for your time..... Now all I have to do is work out how it works ???