Broken Links

7 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2011   (RSS)

By tsuluwerks - April 18, 2011

I would like to use the list feature to create sub menus to a client site (www.newcareinc.com/home.php). Unfortunately, the links are broken. I'm not sure if it's because I re-ordered the records in the editors or something else. Do you have a solution and a way to keep them from breaking again?

Re: [tsuluwerks] Broken Links

By Jason - April 18, 2011

Hi,

I took a look at your page and wasn't able to find any links that are broken. Could you please give some more information about which links are broken and where that information is coming from?

Thanks
---------------------------------------------------
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] Broken Links

By tsuluwerks - April 18, 2011

Most of the subpage links (located in the pale orange column in the middle of the site) are broken. For example, if I go to the Services page and click on "Notice of Information Practices", it takes me to the link http://www.newcareinc.com/services.php?Notice-of-Information-Practices-4 with the error message "Record not found!"

The record exists in the CMS Builder database (otherwise, the link itself would not show up).

This is happening on almost all of the subpages.

Re: [tsuluwerks] Broken Links

By Jason - April 19, 2011

Hi,

Okay, I see where you're referring to now. Could you attach a copy of services.php so I can see your code. It should be a simple fix.

Thanks.
---------------------------------------------------
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] Broken Links

By tsuluwerks - April 19, 2011

Thanks, Jason. I also attached the include files.
T

Re: [tsuluwerks] Broken Links

By Jason - April 20, 2011

Hi,

What's happening here is that you're selecting from 6 different sections, but are using 'whereRecordNumInUrl(1)' for each one. So what's happening is that you're selecting your services record correctly, but your other selections are failing since they don't all have the same record number.

Here are the other 5 sections you're selecting from:
contact_and_hours
job_openings
mailing_list
current_edition
jahco_statement


What you can do is first go through your script and if some of these queries aren't being used, you can remove them. If any of these sections are single record section, you can remove the "where" option from these queries.

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/