I need to get separated the image and text of the article, the problem is that they are in one field of the database, so how can i make that in the view i can put the image separated from the text? because i can't put the image and the text togheter, is a mess
<? foreach ($list as $item) : ?>
<?
$year = date('Y', strtotime($item->created));
$month = date('m', strtotime($item->created));
$day = date('d', strtotime($item->created));
$shortDescription = cutString($item->introtext, 100);
?>
<div class="footerItem">
<?= $day; ?>-<?= $month; ?>-<?= $year; ?>
<p><a href="<?= $item->link; ?>"><?= $item->title; ?></a></p>
<p>
<?= $shortDescription; ?>
</p>
</div>
<?php endforeach; ?>
so i need to put the image like this $item->image - this is what i want, but in joomla latestnews_mod, there is no field with image, and i don't know if i need to write my own, or edit this module, or i need to use other module for this ? And also i cannot get the field $item->category that i need, there is only the CAT_ID, and how can i get the category field??
= $item->title; ?>
= $shortDescription; ?>
.... so you see that i am trying to put from the item fields in the view, but i want to get the image from this latestnews_mod, is that possible?? or i will need to write my own??, or is there other module for this?? because there is no field with the path to the image, Images and text in WYSYG are combined and