Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: Luca on November 19, 2012, 10:13:51

Title: Subsite's Template Question
Post by: Luca on November 19, 2012, 10:13:51
I wish to use the same template (Delta) for both the mothersite and the subsite but, for the lattest, I want to make customizations in the layout (css, etc.).
Those changes are reflected to the mother site, too.

Is there a way, we say, to make a "copy" of the said template in order to keep layouts separated? If yes, please how?

Thank you.
Title: Re: Subsite's Template Question
Post by: hakangur on November 19, 2012, 10:29:27
I am not a expert but I believe I can make a suggestion because I faced the same issue some time ago.

Make a copy of the template in the same directory by giving it a different name (delta2, for example). Go to your sub-site and synchronize the new template. After that, go to settings and select the new template as the default. You can make whatever change you want on the new template.
Title: Re: Subsite's Template Question
Post by: Luca on November 19, 2012, 11:00:56
Thank you @Hakan Gür,

I get this message during the synchronization:
Quote
Installation XML file was not found. Invalid Elxis package!
Title: Re: Subsite's Template Question
Post by: datahell on November 19, 2012, 14:55:49
Create a copy of template delta and name it something else, let's say "delta2".
Rename delta.xml to delta2.xml
Open delta2.xml and change <name>delta</name> to <name>delta2</name>
Now zip the whole template and name it something like tpl_delta2_1.0.zip
Delete the delta2 folder as we are going to install the new template the normal way.
Go to the mother site and install tpl_delta2_1.0.zip
Go to the sub-site and synchronize delta2 template.
Title: Re: Subsite's Template Question
Post by: Luca on November 19, 2012, 15:35:45
Thank you @Datahell

I've literally performed the actions after your directions, but I still get the "Installation XML file was not found. Invalid Elxis package!" message...

Title: Re: Subsite's Template Question
Post by: datahell on November 19, 2012, 19:17:38
Delete any existing "delta2" folder and install the attached one.
It should work fine.
Title: Re: Subsite's Template Question
Post by: Luca on November 19, 2012, 19:30:15
@Datahell
Thank you, excellent!

I'll check the differences in order to see the changes, for my knowledge  :-*