Content of page in Page List

Permalink
In 5.6 I am able to display the main content of a page in Page List.http://www.jmrealestate.com/lease/office-lease... is an example. This was accomplished by using the code:

<?php  
   $isFirst = true; //So first item in list can have a different css class (e.g. no top border)
   $excerptBlocks = ($controller->truncateSummaries ? 1 : null); //1 is the number of blocks to include in the excerpt
   $truncateChars = ($controller->truncateSummaries ? $controller->truncateChars : 0);
   foreach ($cArray as $cobj):
      $title = $cobj->getCollectionName();
      $date = $cobj->getCollectionDatePublic(DATE_APP_GENERIC_MDY_FULL);
      $author = $cobj->getVersionObject()->getVersionAuthorUserName();
      $link = $nh->getLinkToCollection($cobj);
      $firstClass = $isFirst ? 'first-entry' : '';
      $entryController = Loader::controller($cobj);
      if(method_exists($entryController,'getCommentCountString')) {
         $comments = $entryController->getCommentCountString('%s '.t('Comment'), '%s '.t('Comments'));
      }
      $isFirst = false;


I can't see how to do this in 5.7.

I want to use the full content of the page instead of a description so that I can format the information on the page the way I like it.

If anyone knows how to do this, I would appreciate learning.

 
shaolinsteyr1 replied on at Permalink Reply
hello,
i would also be happy to have a solution for this.
Rudydj replied on at Permalink Reply
You can do something like this:

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$th = Loader::helper('text');
$c = Page::getCurrentPage();
foreach($pages as $page) {
   $customAttr = $page->getAttribute('attributeName');
}
?>
TorstenKelsch replied on at Permalink Reply
TorstenKelsch
But how can I display a certain area of the blog articles? For example, from this part in the blog entry template?
$a = new Area('Excerpt');  $a->display($c);
TorstenKelsch replied on at Permalink Reply
TorstenKelsch
TorstenKelsch replied on at Permalink Reply
TorstenKelsch