XF 1.4 Template Modifications

Amaury

Well-known member
I searched the help page, but couldn't find anything.

What exactly are template modifications? I've never used them, as I don't know how they work.
 
Primarily, template modifications should be used by developers. They are not recommended for general style customisations (they are applied globally to the Master Style rather than individual styles).

Typically, manually editing the templates is better.

At a basic level, Template Modifications work on a find and replace system.

e.g.

Find:
Code:
<div class="secondaryContent">

Replace:
Code:
<div class="primaryContent">

They can be very advanced, e.g. using regular expressions and PHP Callbacks, but "String Replacement" as demonstrated above will work for basic tasks.
 
Back
Top Bottom