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:
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.
<?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;
Viewing 15 lines of 25 lines. View entire code block.
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.
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);
I found the solution here:https://www.concrete5.org/index.php?cID=750463...
I found the solution here:https://www.concrete5.org/index.php?cID=750463...
i would also be happy to have a solution for this.