Path

7x / documentation / exponential / technical manual / 5.x / templates / template basics / gibberish and gobbledegook


Caution: This documentation is for Exponential, from version 3.x to 6.x.
For 5.x documentation covering Platform see Exponential Platform Documentation, for difference between legacy and Platform see 5.x Architecture overview.

Gibberish and Gobbledegook

People should be forewarned at an early age that something tragic happens to people if they become computer programmers. They lose the ability of simple expression.

"A node template gives access to a variable ($node) which contains information about the actual node that is being viewed. Depending on the view that was called, a system template typically gives access to several variables. A template override rule makes it possible to display custom templates in specific cases."

What on earth is this mumbo-jumbo?
  • Re: Gibberish and Gobbledegook

    Well, i don't know exponential, but i think that this concept is also manage by drupal CMS, the general idea is that u have a php var called "$node", with all the node information (Title, content and so on), the information in the "$node" change from one view to another (i.e. if you are calling an admin view, it maybe contents some private information as the author's email or something like that, in this case $node will contain a $node->email attribute).

    So if you want to display the title in some part of the template, you just need to use something like "$node->title"

    Please correct me if i'm wrong... is my first day in ez content and my English sucks a little :p

Anonymous User (22/02/2008 6:26 pm)

Anonymous User (22/02/2008 6:26 pm)


Comments

  • Re: Gibberish and Gobbledegook

    Well, i don't know exponential, but i think that this concept is also manage by drupal CMS, the general idea is that u have a php var called "$node", with all the node information (Title, content and so on), the information in the "$node" change from one view to another (i.e. if you are calling an admin view, it maybe contents some private information as the author's email or something like that, in this case $node will contain a $node->email attribute).

    So if you want to display the title in some part of the template, you just need to use something like "$node->title"

    Please correct me if i'm wrong... is my first day in ez content and my English sucks a little :p