Elxis CMS Forum

Support => Technical support => Topic started by: jupe on February 13, 2007, 18:59:38

Title: Problem viewing my elxis webpage
Post by: jupe on February 13, 2007, 18:59:38
When i open my webpage made with elxis locally it works perfectly. However if i reach it through another computer in local network or from outside i can't see the page properly.
The template is not loaded and i see the text only.

Any idea what might solve this?
Title: Re: Problem viewing my elxis webpage
Post by: datahell on February 13, 2007, 20:03:10
Your template css (or template's index.php) file should not contain any full URLs. You should use relative paths instead.
Examples
dont use:
http://localhost/images/test.gif
or
http://192.168.0.1/images/test.gif
or
http://127.0.0.1/images/test.gif
or
http://66.66.66.66/images/test.gif (where 66.66.66.66 is a dynamic ip address)
or
http://local_alias/images/test.gif

use instead:

images/test.gif


Note this line that is located in almost any template's index.php:

<link href="<?php echo $mosConfig_live_site;?>/templates/my_template/css/template_css.css" rel="stylesheet" type="text/css"/>

This loads the template's css file.
Note that if $mosConfig_live_site URL is not accessible from other computers in your network css wont be loaded. The same for content items images etc.
Title: Re: Problem viewing my elxis webpage
Post by: jupe on February 13, 2007, 23:30:07
Thanks for quick answer.

i checked all these but it's not it. I even tried different templates.
Must be something else  ???
Title: Re: Problem viewing my elxis webpage
Post by: datahell on February 14, 2007, 00:18:29
Quote from: datahell
Note that if $mosConfig_live_site URL is not accessible from other computers in your network css wont be loaded. The same for content item images etc.

Check hardcoded in content items image paths. You also dont tell us where exactly you dont see images. Can you do a "view source" in your browser and paste here how image urls are coded?

As you may understand this issue has only to do with with your network/server settings and not Elxis.