display name of current page

Submitted by remo - 5 years ago

When you create a theme, you might want to display the name of the current page. This is easy with concrete5, here's how it works.

$c = Page::getCurrentPage();
$collectionName = $c->getCollectionName();

echo "<h1>{$collectionName}</h1>";
Stats Categories Tags
comments powered by Disqus