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: [northernpenguin] Content Display Problem

By Jason - August 16, 2010

Hi,

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

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: [northernpenguin] Content Display Problem

By Chris - August 17, 2010

Hi northernpenguin,

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