Coding not displaying correctly

6 posts by 3 authors in: Forums > CMS Builder
Last Post: May 14, 2010   (RSS)

By design9 - May 12, 2010

Hello,

I need some help with an issue I am having. I have 2 pages, an archives and issue page. I have several different sections of coding on each page. I have the coding that makes the archives work and then I have other coding for other areas on the page like the menu and other sections. Well, it all works fine when I pull up the page individually. However, when I go to the archives page and then click on an issue to see the details which is being pulled dynamically, then all my other coding like the menu and other sections doesn't display at all. Only the issue coding displays. I am stumped and need to figure out how to fix this?

Here are the links to view the pages and I have also attached my php files as well.

Archives page:

http://www.charlotteparent.com/test/publications/archives.php

Issue Page:

http://www.charlotteparent.com/test/publications/issue.php

As you will see these display all my various sections of coding with the correct display.

The issue is when you go ot the http://www.charlotteparent.com/test/publications/archives.php and click on the "The Ars & Family Finance, April 2010 issue", it takes you to that details page (http://www.charlotteparent.com/test/publications/issue.php?The-Arts-Family-Finance-29) and you will see that the only coding to display is the actual issue details coding. None of my other sections/coding displays at all (menu, footer, sidebar blue tabbed panels, green quote box).

Thanks!

April
Attachments:

archives.php 44K

issue.php 45K

Re: [apdance9] Coding not displaying correctly

By zip222 - May 12, 2010

I think you need to disable search since you have multiple viewers on a single page. This is done by adding the following:

list($main_menuRecords, $main_menuMetaData) = getRecords(array(
'tableName' => 'main_menu',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
'allowSearch' => '0',
));


trying adding that to all of your list viewers.

Re: [zip222] Coding not displaying correctly

By design9 - May 12, 2010

Thanks...I tried that but it doesn't work or fix the issue.

April

Re: [apdance9] Coding not displaying correctly

By Jason - May 14, 2010

Hi April,

You're taking the menu information from 2 different tables (main_menu and secondary_menu). These tables only have 1 record each, so there is no need for the "where" clause. Try changing your getRecords statements to these:

list($main_menuRecords, $main_menuMetaData) = getRecords(array(
'tableName' => 'main_menu',
'limit' => '1',
'allowSearch' => false,
));
$main_menuRecord = @$main_menuRecords[0]; // get first record

list($secondary_menuRecords, $secondary_menuMetaData) = getRecords(array(
'tableName' => 'secondary_menu',
'limit' => '1',
'allowSearch' => false,
));
$secondary_menuRecord = @$secondary_menuRecords[0]; // get first record


Another thing you may want to take a look at is this code:
list($article_archivesRecords, $article_archivesMetaData) = getRecords(array(
'tableName' => 'article_archives',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$article_archivesRecord = @$article_archivesRecords[0]; // get first record


You have this exact same code twice, once starting at line 26 and again starting at line 57. You may want to remove one.

Give this a try and let me know if you run into any more problems.
---------------------------------------------------
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: [apdance9] Coding not displaying correctly

By Jason - May 14, 2010

Hi April,

I'm glad that's working out for you now.

If there are other pages that are using those menus, you would probably want to make those same changes so that you don't run into that issue again in the future.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/