Need help with Image Source Problem

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 25, 2008   (RSS)

By gbengston - April 25, 2008

We have just started to test out the CMS tool and noticed that on the page view page our image source location is incorrectly changing whereas it is fine on the list view page.

For example, our logo is correctly being called up from it's usual location at "images/logo_GKB_Solutions.gif" on the list view page. But, when you click to the page view page, something in the CMS code is changing our image location to "newsPage.php/images/logo_GKB_Solutions.gif".

Here are the two test pages:
http://www.gkbsolutions.com/newsList.php
http://www.gkbsolutions.com/newsPage.php/Another_sample_article-3 (or you can just click on any of the links on the newslist page).

We'd rather not hard code our image sources in our page templates. I'm sure there is something that we did wrong in the setup that is causing this. Once we figure this out we should be fine integrating this great CMS tool into our new website.

Re: [gbengston] Need help with Image Source Problem

By Dave - April 25, 2008

Hi gbengston, welcome to the forums! :)

Try disabling the SEO urls option like this: $options['useSeoUrls'] = '0';

Because the SEO urls use slashes it's as if that page was in a subdirectory so relative urls won't work. You'd have to use absolute urls from the root like this: /images/logo_GKB_Solutions.gif

Turning off SEO urls will generate urls like this and show your image just fine:
http://www.gkbsolutions.com/newsPage.php?Another_sample_article-3

Hope that helps! Let me know if you need more detail about any of that or if you have any other questions.
Dave Edis - Senior Developer
interactivetools.com