Detail pages not working right
2 posts by 2 authors in: Forums > CMS Builder
Last Post: May 10, 2011 (RSS)
By camjessie - May 10, 2011
Hello. I'm having a problem with the detail pages from a multi menu. It was working for the first record while the others gave me the "Record Not Found" error until I removed the 'where' => whereRecordNumberInUrl(1). Now, it brings up a page for the first record but uses all the data from the last record added. The other links still give an error message. I've looked at several other examples like this that all work fine, I just can't find what I have wrong. I attached the list and detail pages, if someone could look them over and find my problem I would be eternally grateful!
Re: [camjessie] Detail pages not working right
By gkornbluth - May 10, 2011
H Camjessie,
I think that part of the problem is that you might have to remove the other occurrences of
When a record number is passed from a list page to a detail page at the end of the URL, unless the actual record number appended is record 1, the "where" won't allow that record to show.
You may also have to add
Hope that gets you started in the right direction.
Best,
Jerry Kornbluth
I think that part of the problem is that you might have to remove the other occurrences of
'where' => whereRecordNumberInUrl(1),
When a record number is passed from a list page to a detail page at the end of the URL, unless the actual record number appended is record 1, the "where" won't allow that record to show.
You may also have to add
'allowSearch' => false,[
to some of the record calls
.Hope that gets you started in the right direction.
Best,
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php