Easy News - News Body in Block
Permalink
Here it is a custome tamplate for Easy News that will display the News Body along News Title and News Description.
class="your_class" should use the CSS class you prefer.
class="your_class" should use the CSS class you prefer.
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); $textHelper = Loader::helper("text"); // now that we're in the specialized content file for this block type, // we'll include this block type's class, and pass the block to it, and get // the content if (count($cArray) > 0) { ?> <div class="ccm-page-list"> <?php for ($i = 0; $i < count($cArray); $i++ ) { $cobj = $cArray[$i]; $title = $cobj->getCollectionName(); ?> <span class="your_class"><?php echo $title?></span> <?php if ($cobj->getCollectionTypeHandle()=="Press Release") { ?> <h4><?php echo $cobj->getCollectionAttributeValue('Press_Release_Type'); ?> - for release on <?php echo strftime("%x %l:%M%p",strtotime($cobj->getCollectionAttributeValue('Release_Date'))); ?></h4>
Viewing 15 lines of 53 lines. View entire code block.