Does "revert" work on custom templates?

CTXMedia

Well-known member
Just a query about the template revert feature.

I installed the Flexile skin, and in the process of making a few changes of my own I had managed to make a mess of some of the CSS.

To get me back-to-the-start I reverted all the templates in red, on the assumption that this would take me back to the base Flexite templates.

However, this didn't work, so my query is - does reverting a template take it back to the code that the skinner supplies, or back to the default template code that comes with XF?

Cheers,
Shaun :D
 
Reverting your template will cause your template to mirror the template of it's parent.

If you have the Default install of XF, and you install Flexile as a child of XF, then reverting the template will cause it to revert back to the default template. In other words, you would lose all the Flexile changes.

Erik lists out the recommended process in either the Flexile or Flexile Dark thread. You should install the Flexile style as a child of Default, then install your preferred color as a child of Flexile, and never touch the "Flexile" style. That way, your templates will not be overwritten during updates, and you can revert your templates as needed.

Your install should look something like the below.

Default
Flexile​
Flexile Blue​
Flexile Green​
 
Reverting your template will cause your template to mirror the template of it's parent.

If you have the Default install of XF, and you install Flexile as a child of XF, then reverting the template will cause it to revert back to the default template. In other words, you would lose all the Flexile changes.

Erik lists out the recommended process in either the Flexile or Flexile Dark thread. You should install the Flexile style as a child of Default, then install your preferred color as a child of Flexile, and never touch the "Flexile" style. That way, your templates will not be overwritten during updates, and you can revert your templates as needed.

Your install should look something like the below.

Default
Flexile​
Flexile Blue​
Flexile Green​

Ah, good - glad I asked - because I failed to read that and installed it as a child of Default - which explains why it reverted back to XF instead of Flexile.

/me slaps forehead!!! DOH!

It also answers another question I was going to ask, which was "how does the parent / child relationship work in the template system?"

Many thanks - I shall have another fiddle with the templates later this week.

I reckon this advice will also save me muchos headaches in the future too, so +1 for the info.

Cheers,
Shaun :D
 
Another quick query - can I "slot" Flexile in above the current style - make my current (customised) Flexile a child without having to remove it?

Cheers,
Shaun :D
 
Another quick query - can I "slot" Flexile in above the current style - make my current (customised) Flexile a child without having to remove it?

Cheers,
Shaun :D

Not that I am aware of. My suggestion to you at this point (assuming you made custom modifications you do not wish to lose) is:

Install a new copy of Flexile and name it "Flexile Template". Be certain to choose "Default" as it's parent and do NOT over-write your existing copy of Flexile.

Next, install another copy of Flexile and name it "Flexile Blue". Make this copy a child of "Flexile Template" and again, do not over-write any existing copy.

Copy over any template edits from your current Flexile, to Flexile Blue. Never ever make any edits to Flexile Template. Lastly, delete your current "Flexile" install.
 
Top Bottom