Wrong Template Loaded 13 Years, 8 Months ago
|
Karma: 0
|
On Joomla 1.6.1 & 1.6.3 :
When loading template from a slave site, it will go in the master template directory (even though the slave's template directory is copied (not symlinked) into a dedicated directory).
We suppose that it comes from defines.php in patches that defines JPATH_THEMES to the master templates directory.
|
|
|
|
|
Re: Wrong Template Loaded 13 Years, 8 Months ago
|
Karma: 54
|
No.
If you read carefully, you can see that you have a if !defined() added by Jms Multi Sites.
So if Jms Multi Sites does not have computed the new value then yes, this is the master.
Otherwise, this is the value computed by Jms multisite
I will try reproducing your scenario to verify it.
|
|
|
|
|
Re: Wrong Template Loaded 13 Years, 8 Months ago
|
Karma: 0
|
To reproduce this issue:
Create a slave site from master site (of course we have select copy for template dir)
Modify master template to differentiate it from slave's one
Load the slave site
you have the master template loaded (JPATH_THEMES refers to master template dir)
|
|
|
|
|
Re: Wrong Template Loaded 13 Years, 8 Months ago
|
Karma: 54
|
What did you modified in the master template ?
Do you mean that you selected the template and modified some parameters or modified directly the CSS content and similar.
If you just have modified the parameters to select different colors or preset, this is normal that you slave re-use the value present in your master.
As long as you didn't have modified the parameters in a slave, it uses the default one present in the master.
So go in the slave and modify the parameters and you will see that they are no more the same as the master one.
|
|
|
|
|
Re: Wrong Template Loaded 13 Years, 8 Months ago
|
Karma: 0
|
It's the template files that we have modified, not the parameters. Modify the index.php of the template to make a visible difference between templates. Whatever you do to the slave template files, there won't be used.
As I Already said : JPATH_THEMES points to master/templates and not multisite/slave_id/templates.
|
|
|
|
|
Re: Wrong Template Loaded 13 Years, 8 Months ago
|
Karma: 54
|
If the JPATH_THEMES, this is because you are on the master and not on the slave.
So check that you correctly spelled the domain name (probably with WWW and without WWW).
When a URL is received and is not present in the list of slave, this is the master that is used.
This is case sensitive.
You need an exact match.
We do not touch in the "index.php" present in the "/templates" directories.
|
|
|
|
|
|