3

What's the difference between "templates" (default location system/expressionengine/templates/default_site/) and "themes" (default location themes/)?

I'm curious particularly for a single site setup.

I want to manage my templates as files (for my editor + git) and by default it set me up with the templates folder, but it looks like the themes folder which came with a nice site_themes/agile_records example is the same thing? Should I point my Template File Directory setting to themes/?

1

Templates are the templates that you make with the ExpressionEngine tags, html etc.

Themes are used by the system to display the control panel, field types etc. (also, as NateTronn mentions, there are/is some example code for the example site "Agile Records" that is shipped with EE)

Generally the system directory is not publicly accessible, the themes directory is. The themes directory also holds the javascript and css files for third-party addons.

1
  • GDmac brings up a good point in that there are themes for the CP as well which are of course more important than I make themes out to be in my reply :)
    – Natetronn
    Apr 21 '13 at 17:27
5

I think it's fair to say that themes should be looked at as examples and nothing more. I also think most people start off EE sites without installing a theme and also most people I know delete Agile Records from their installs from the get go.

ExpressionEngine really makes no assumption about what you want to build for the most part.

With that said, there are a few ways to handle templates. You can turn on the save templates as file feature. More about that can be found here.

You can use a product like Mountee which I won't go into detail here because they have a full site of details. Basically, however, it mounts your templates folder so you can access it via your favorite editor.

You can use something like EE Master Config to setup templates as files using Config Overrides so you don't have to turn on each template as a file. This also has config overrides for moving the default location of the template folder as well. This of course is the more advanced of the three options I listed.

There really is no reason to ever have to edit a template in the control panel these days.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.