Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

What are the Variables in Node.tpl.php

2/22/2012

0 Comments

 
$content
Node content, teaser if it is a summary.

$date
Formatted creation date.

$directory
The directory the theme is located in, e.g. themes/garland.

$id
The sequential ID of the node being displayed in a list.

$is_front
True if the front page is currently being displayed.

$links
Node links.

$name
Formatted name of author.

$node (object)
The node object.

$node_url
Link to node.

$page
True if the node is being displayed by itself as a page.

$picture
HTML for user picture, if enabled.

$sticky
True if the node is sticky.

$submitted
Author and create date, if the node info display is enabled for this node type.

$taxonomy (array)
array of HTML links for taxonomy terms.

$teaser
Only returns the teaser rather than the full node text.

$terms
HTML for taxonomy terms.

$title
Title of node.

$zebra
Alternates between odd/even in a list.
0 Comments



Leave a Reply.

    Archives

    April 2012
    March 2012
    February 2012

    Categor

    All
    Ajax
    Api
    Cross Site Scripting
    Css
    Curl
    Design Patterns
    Drupal
    Exception Handling
    Htaccess
    Html
    Javascript
    Jquery
    Json
    Linux
    Mysql
    Oops
    Php
    Regular Expressions
    Web 2.0
    Webservices
    Wordpress
    Xhtml

    RSS Feed

Powered by Create your own unique website with customizable templates.