phowie74
10/11/2016 - 10:09 AM

Show page description if no content added to content block

Custom template for content block to show page description if no content added /application/blocks/content/templates/description.php

<?php defined('C5_EXECUTE') or die("Access Denied.");
if ($content != "") {
  print $content;
} else {
	$c = Page::getCurrentPage();
  echo '<p class="lead">'.nl2br($c->getCollectionDescription()).'</p>';  
}