Quantcast
Channel: drupal.org - Site administrators
Viewing all articles
Browse latest Browse all 426

Views PHP - Output code

$
0
0

The Views PHP field contains a section labelled Output code where you can create output to be displayed by the field. The content starts in HTML mode and you can add PHP using the PHP element.

The following example prints a node title from a node row.
<?php print $row->title; ?>

The following example prints a node title from a node row within a heading.
<h2><?php print $row->title; ?></h2>


Viewing all articles
Browse latest Browse all 426

Trending Articles