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.

Templates

October 28, 2011 2:21am

Subscribe [2]
  • #1 / Oct 28, 2011 2:21am

    The Wizard

    265 posts

    Hello again,

    my CodeIgniter apps use following custom template format:

    let say, main_index.php:

    (pseudo code)

    load-> header
    
     content of main 
    
    load-> footer

    i know this should be possible in EE but where do we exactly look in the documentation?

    Also, what are template groups?
    Is a template group something like “all the files related to 1 page” like for example,
    the index page?
    Like “header template”, “content template” and “footer template” related to just the 1 part of the website?


    Please clarify this, thank you!

  • #2 / Oct 28, 2011 2:52pm

    Kevin Smith

    4784 posts

    Hi herrkaleun,

    If I understand you correctly, you’re asking a few things:

    1) How do I load partial or sub-templates into my template?

    In EE, you can load bits of code into a template in the form of either snippets or embedded templates. The two options give you different levels of functionality and performance.

    2) How are templates and template groups organized?

    For this, I would recommend reading through our guide on understanding The Big Picture with EE. This will give you a really good introduction into how EE stores data and organizes “views”.

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

ExpressionEngine News!

#eecms, #events, #releases