Content Display Problem
8 posts by 3 authors in: Forums > CMS Builder
Last Post: August 17, 2010 (RSS)
By selecting a topic from the TOC, you should see the content. For some reason, I no longer do. I did not make any code changes when I upgraded. Attached is the file in question.
Any help would be appreciated!
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Re: [northernpenguin] Content Display Problem
By Jason - August 16, 2010
I took a look at the page and it seems to only be selecting categories from the database and is not selecting information based on anything in the query string.
Is it supposed to be selecting from tables other than policy_manual_toc?
Let me know.
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Content Display Problem
Record Number num
Created createdDate
Created By createdByUserNum
Last Updated updatedDate
Last Updated By updatedByUserNum
_globalOrder globalOrder
_siblingOrder siblingOrder
_lineage lineage
_depth depth
Parent Category parentNum
Breadcrumb breadcrumb
Name name text
Content content wysiwyg
"title" is the TOC title you see in the right sidebar. When you pick one of those categories, the content associated with this field should display on the main left side of the window.
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Re: [northernpenguin] Content Display Problem
By Chris - August 16, 2010
Could you please post the complete PHP source code of your policyManual.php page?
Chris
Re: [chris] Content Display Problem
By northernpenguin - August 17, 2010 - edited: August 17, 2010
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Re: [northernpenguin] Content Display Problem
By Chris - August 17, 2010 - edited: August 17, 2010
Oops, sorry about that! So you did!
I think you'll simply need to remove this line:
'selectedCategoryNum'=>'',
When the 'selectedCategoryNum' key is not provided, the behaviour defaults to getLastNumberInUrl(), which is what you want.
I believe we changed how 'selectedCategoryNum' works in a recent version to allow people to use '0' or '' to mean "don't select any categories," which was previously impossible. Sorry for the confusion!
I hope this helps! Please let me know if you have any questions.
Chris
Re: [chris] Content Display Problem
You are right on the money! That's exactly what it was. It now works properly.
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Re: [northernpenguin] Content Display Problem
By Chris - August 17, 2010
Glad to hear you've got everything figured out! :)
Chris