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: 1
TOPIC: Share template directory with master
#3577
Share template directory with master 14 Years, 4 Months ago Karma: 0
Hi Edwin,

Could you tell me if the following is possible? My slave sites use the same template as the master. When I make changes to this template in the master, I want these changes to be available in the slave sites.

When creating a slave site I'd like to point to the template directory of the master. Is that possible or do I always have to copy the template directory? The option "symbolic link" is not available for the "Templates" folder when I create a JMS template...

I hope my question is clear.

Thanks,
Tom
ludder
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3578
Re:Share template directory with master 14 Years, 4 Months ago Karma: 0
Hi,

I found the answer myself.

The documentation reads:
"On non Windows – probably Unix, this creates Symbolic Links on the
“template site” themes folder. We have chosen to create “Symbolic Links”
instead of duplication to simplify the maintenance and allow reduce the
number of place where template must be updated. This can help some
companies that use JMS to propose “themes” to their customers. They could
have only one place where to maintain the “themes”." (p.29)

So what I want is the default option. I just filled in the JMS template with the wrong details. The correct ones are:

Tab "Common": Field "Templates (themes) folder:" => leave empty
Tab "Folders and Files": Dropdown "templates" => "special: Special copy"
ludder
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3579
Re:Share template directory with master 14 Years, 4 Months ago Karma: 54
exact.
3 cases are possibles

1) Share the "/templates" directory with a symbolic link
"folder" action = special copy
And templates folder = empty

2) Share the subdirectories of "/templates"
This will create a directory "/templates" and the subdirectories will be Symbolic Link

"Folder" action = special copy
"template folder" = {deploy_dir}/templates

3) A full copy of the "/template" directory.
"Folder" action = COPY

With these scenario you have all the possible combinaisons.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/10 16:26 By edwin2win.
The administrator has disabled public write access.
 
#4054
Re:Share template directory with master 14 Years, 2 Months ago Karma: 1
Hello Edwin,

In the case the Master and Slaves are already deployed and you change the configuration on the Template Replication => that is, you change the templates options from

Special Copy to Copy
or
Copy to Special Copy

... will this create the necessary symbolic links or deploy the Master templates into the slave sites?

Or once the sites are deployed, you can no longer create the symbolic links back to the Master site?

For example, I am modifying from SPECIAL COPY to COPY, and refreshing/saving, but am not getting the corresponding templates created in my slave sites.

Any idea?
miamiman
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/30 01:22 By miamiman.
The administrator has disabled public write access.
 
#4062
Re:Share template directory with master 14 Years, 2 Months ago Karma: 54
NO.
Once it is deployed, this is no longer created.

The parameters are used to create a slave sites.
Not to modify it.

When JMS detect that a directory (or symbolic link) is already present, it skip it.

JMS does NOT perform any synchronisation.
So if you decide to create a physical "templates" or "images" directory, their content will be the one at the moment you have created the slave sites and will no more modified.
If you keep these directories as symbolic link, this avoid to update them.
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: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla