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.

Dissecting the Default Templates: Variables, Paths, and weblog=

September 13, 2007 6:47pm

Subscribe [2]
  • #1 / Sep 13, 2007 6:47pm

    Lisa Wess

    20502 posts

    As we head down the road of dissecting the default templates, we’re going to learn some of the important facets of ExpressionEngine’s infrastructure.

    Today, we’re going to focus on the area between the <head> and </head> section of the index template.

    In doing that, we’re going to come across three vital elements that you need to understand, and it will be easier to do so going in.  The first is the weblog= parameter.  This parameter is going to be used in the majority of your tags, and tells that tag what weblog(s) you are pulling data from.  So, when someone asks: “How do I relate a weblog to a template?” the answer is invariably “the weblog= parameter”.  I encourage you to perform a search for “weblog=“in the docs right now to see just how many tags this parameter can be used in.

    The second concept is variables, there are two types: variables that are context sensitive and require a surrounding tag pair, as well as global variables.

    The third concept we’ll explore is path statements.  Whenever you see something that is in the format of =“template_group/template_name”, then that is a form of path statement.  You can read more about those here.


    Now then, shall we dig in?


    Onwards!

  • #2 / Sep 19, 2007 10:36am

    torin

    7 posts

    Nice post Lisa.

    I’m sure that it will be read and re-read numerous times by myself as I try figure out the new structure for building templates.

    /t

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

ExpressionEngine News!

#eecms, #events, #releases