ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

What constitutes a theme?

January 28, 2011 9:45am

Subscribe [3]
  • #1 / Jan 28, 2011 9:45am

    davey

    27 posts

    Hi again,

    My thread got closed, yet I had more questions, so… can someone answer these?

    If there is a themes folder why is there a templates folder that actually ties into CP and the database and stays in sync?

    Kinda related to this…
    This question may be related to a resolved thread.

    So, what is the best practice of using themes over just the templates folder or how are they best used when using an approach that uses both locations?

    thanks in advance,

    David

  • #2 / Jan 28, 2011 9:58am

    BigCItyShelts

    35 posts

    Personally, I always put all the code I create for a site in the templates directory.  The themes directory has some ready-made templates for the /members section of your site.  A login form and registration form, for instance.  I sometimes edit those themes just to give them a similar style to the rest of the site.  But, 95% of the time, I work in the templates directory when creating a new site.

  • #3 / Jan 29, 2011 2:21pm

    Greg Salt

    3988 posts

    Hi davey,

    As BigCityShelts mentioned, the themes folder and the system/expressionengine/templates folder are used for completely purposes. The themes folder contains ready-to-use assets (CSS, images, and templates) that are used for 1st party (and some 3rd party) modules (Forum, Member, Wiki) as well as the control panel themes (Default, Corporate etc). The templates folder is the suggested (but not mandatory) place to store your own created templates for your site. Where the confusion may occur is that there is a themes/site_themes folder. This is only used for theme packages that can be installed at the same time as you install EE itself. You may have seen that you had the option to install the Agile theme when you installed EE. That’s because that theme package is at themes/site_themes/agile_records but what happens when you install it is that it actually creates templates for you that you can access within the CP using the Template Manager. Those templates are the ones that are used to display your site.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases