Detail Page Issue

5 posts by 2 authors in: Forums > CMS Builder
Last Post: March 29, 2011   (RSS)

By KCMedia - March 27, 2011

Hi all

i have this page that displays jobs on it and then when you click on the job it should show you the details about the job but it isnt working.

I have attached the pages also.

http://www.opsjobs.com.au/newsite/current-job-vacancies.php
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Detail Page Issue

By robin - March 28, 2011

Hey Craig,

Try switching the jobs load records block in the details page to this:
// load records
list($jobsRecords, $jobsMetaData) = getRecords(array(
'tableName' => 'jobs',
'limit' => '1',
'where' => whereRecordNumberInUrl()
));
$jobsRecord = @$jobsRecords[0]; // get first record


That should force it to use the link number to decide which record to display.

Hope that helps,
Thanks
Robin
Programmer
interactivetools.com

Re: [robin] Detail Page Issue

By KCMedia - March 28, 2011

Hi Robin

thanks for that it fixed the issue with page BUT now the form next to the job on the detail page is not populating the vacancy field like it should be find the pages attached.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Detail Page Issue

By robin - March 29, 2011

Hey Craig,

Since your form is in an iframe you'll need to pass it what job is being displayed. Where you call the iframe, you'll need something like this:<iframe frameborder="none" src="http://www.opsjobs.com.au/newsite/apply-job/form.php?<?php echo $jobsRecord['num']; ?>" allowTransparency="true" style="width:250px;height:500px;border:none;"></iframe>

Hope that helps,
Robin
Robin
Programmer
interactivetools.com