Trying to render Description

Permalink
I have a Page List on this page:
http://www.ctbta.org/news/news-archive/...

If you look at the first entry, the description ends with "« Previous News Home Leave a Reply Name: Email (Your email will not be publ…"

Seems to me as if the above description is pulling the first 300 characters from the article.

I did put my own description into Page Properties/Standard Properties/Description

How do I get that Description to display instead?

Here's the code:

<div class="excerpt">
  <?php
    $a = new Area('Main');
    $a->disableControls();
    if($truncateChars) {
      $th = Loader::helper('text');
      ob_start();
        $a->display($cobj);
      $excerpt = ob_get_clean();
      echo $th->entities($th->shorten($excerpt,$truncateChars));
    } else {
      $a->display($cobj);
    }
  ?>
</div>


Thanks.

kreative
 
kreative replied on at Permalink Reply
kreative
I figured it out.

Added
$description = $cobj->getCollectionDescription();


then updated my code

<?php
    $a = new Area('Main');
    $a->disableControls();
    if($truncateChars) {
      $th = Loader::helper('text');
      ob_start();
        $a->display($cobj);
      $excerpt = ob_get_clean();
      echo $th->entities($th->shorten($description,$truncateChars));
    } else {
      $a->display($cobj);
    }
  ?>