Loading Different Page Content Without Query Strings

2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 5, 2013   (RSS)

By Jason - September 5, 2013

Hi,

You can certainly take that approach.  You shouldn't run into too much of an issue in terms of overhead.  One of the problems you may run into is the code base would become quite large as new pages are being added as you would need to keep adding to your if statement.  Another approach you could take is to put the code that loads the content directly on the individual pages. 

For example, on about.php, we know what content we would want to load, so we can hardcode in the getRecords call for that page.

Hope that 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/