I downloaded several templates to test and study.
I am using my computer to test them before upload to my site, and, for this, I am using a system called System2Go (apache, mysql and php servers).
Te problem:
when I access the local site, wich is located at http://127.0.0.1:4001, the templates appear as if they were without any css formatting.
I examined the source code and found that:
in place of putting the address as http://127.0.0.1:4001/….. it does : http://127.0.0.1:/…
Example:
<link rel=”stylesheet” href=”http://127.0.0.1:/templates/ja_dravity/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”http://127.0.0.1:/templates/ja_dravity/css/typo.css” type=”text/css” />
<link rel=”stylesheet” href=”http://127.0.0.1:/templates/ja_dravity/css/ja.news.css” type=”text/css” />
Note the lack of the port number.
These lines are, in the template’s index.php:
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/typo.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/ja.news.css” type=”text/css” />
This seems to be related to the $tmpTools->templateurl() variable.
In the joomla configuration.php, the address is correct: $mosConfig_live_site = ‘http://127.0.0.1:4001’;
This happende with the tmplates:
1 – Ja Telline II;
2 – Ja Dravity II.
This error happens only when the referenced is the template’s directory, all other joomla’s references are ok.
Sergio