Content Display Problem

8 posts by 3 authors in: Forums > CMS Builder
Last Post: August 17, 2010   (RSS)

I recently upgraded CMSB from 2.0 to 2.04 and one of my pages stopped working correctly. The site is: http://www.huntclubestates66.com/policyManual.php

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
Attachments:

policymanual.php 10K

Re: [Jason] Content Display Problem

Jason: All the data is in the same table, policy_manual_toc. Below is my table definition.

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

Hi northernpenguin,

Could you please post the complete PHP source code of your policyManual.php page?
All the best,
Chris

Re: [chris] Content Display Problem

By northernpenguin - August 17, 2010 - edited: August 17, 2010

Chris: the full php source is posted with my first submission to this post.
--
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

Hi northernpenguin,

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.
All the best,
Chris

Re: [chris] Content Display Problem

Thanx Chris

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

Hi northernpenguin,

Glad to hear you've got everything figured out! :)
All the best,
Chris