English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 12
TOPIC: Wrong Template Loaded
*
#7087
Wrong Template Loaded 13 Years 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.
vizeurope
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7090
Re: Wrong Template Loaded 13 Years 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.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7101
Re: Wrong Template Loaded 13 Years 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)
vizeurope
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7108
Re: Wrong Template Loaded 13 Years 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.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7120
Re: Wrong Template Loaded 13 Years 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.
vizeurope
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7124
Re: Wrong Template Loaded 13 Years 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.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla