Carry out the following steps to get a list of the available constants:
Open
default.php
from your theme in a text editor.Look for the following PHP block:
<?php $b = new Area('Main'); $b->display($c); ?>
Before the closing PHP tags
?>
, insert a few more lines so it looks like the following:<?php $b = new Area('Main'); $b->display($c); echo '<pre>'; print_r(get_defined_constants(true)); echo '</pre>'; ?>
Open a page of a type without a page template. Remember, we've created a template for the left and right sidebar. Pick the full width for example, otherwise the inserted code won't be executed.
The output will contain a huge list of constants categorized by modules. At the end there's a category named
user
; these are the constants which are not coming from PHP itself but rather from concrete5. Look at them and you'll find a lot of constants related to directories, URLs, locales, and more. You don't need...