Created
December 16, 2013 17:31
-
-
Save zanardigit/7990901 to your computer and use it in GitHub Desktop.
Override for Latest Articles module for Joomla to show Intro + Full text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('_JEXEC') or die; | |
?> | |
<ul class="latestnews<?php echo $moduleclass_sfx; ?>"> | |
<?php foreach ($list as $item) : ?> | |
<?php | |
$db = JFactory::getDbo(); | |
$query = "SELECT `fulltext` FROM `#__content` WHERE `id` = ".$item->id; | |
$db->setQuery($query); | |
$item->fulltext = $db->loadResult(); | |
?> | |
<li> | |
<a href="<?php echo $item->link; ?>"> | |
<?php echo $item->title; ?> | |
<p><?php echo $item->introtext . $item->fulltext; ?></p> | |
</a> | |
</li> | |
<?php endforeach; ?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment