En:Why are images not displayed after changing to phpCMS?
From phpCMS
Question: Why are images, animations, ... not displayed after changing to phpCMS?
There is only a red X displayed where the graphic should be. It looks as if the browser cannot find the graphic.
Answer: phpCMS is generating HTML code exactly as it is described in the content file. If an image is not displayed in the browser it means that the browser was not able to find it, i.e. the <img scr="..." /> tag in the HTML code did not point to where the image really is.
That has nothing to do with phpCMS.
That means one should verify the HTML source code of the phpCMS-generated page to see whether the path is correctly shown there.
Paths can be defined as absolut paths (starting from the root of the website, e.g. "/images/image.gif") or as relative paths (relative to the calling page, e.g. "images/image.gif" or "./images/image.gif" if the calling page is located in the root of the website).
The only particularity when using phpCMS is the possibility to use the variable "$home".
When generating a page phpCMS replaces this variable with the value of the "HOME" entry in the project file (.ini). In the above example one could e.g. also write "$home/images/image.gif" if the entry in the project file would be "HOME := /".
Based on an answer (in German) by Ignatius in the phpCMS support forum.
Diese Seite in anderen Sprachen: Deutsch
Main Page: FAQ MainPage | Top Page: English FAQ MainPage

