Skip to content

Commit

Permalink
Update readme.md (fix syntaxhighlighting)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Maack committed Apr 30, 2012
1 parent e8153d7 commit d779d02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Usage with columnFields
=============

<pre><code>
<?php
$GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
Expand Down Expand Up @@ -37,12 +39,16 @@ $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = array
)
)
);

?>
</code></pre>

Usage with callback
=============

<pre><code>
<?php
$GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_table']['anything'],
Expand All @@ -54,6 +60,8 @@ $GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = array
'columnsCallback' => array('Class', 'Method')
)
);

?>
</code></pre>

More information
Expand Down

0 comments on commit d779d02

Please sign in to comment.