Share template directory with master 14 Years, 9 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
|
|
|
Re:Share template directory with master 14 Years, 9 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
|
|
|
Re:Share template directory with master 14 Years, 9 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.
|
|
|
Last Edit: 2010/03/10 16:26 By edwin2win.
|
|
Re:Share template directory with master 14 Years, 8 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?
|
|
|
Last Edit: 2010/04/30 01:22 By miamiman.
|
|
Re:Share template directory with master 14 Years, 7 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.
|
|
|
|
|
|