If you want to customise the information presented in the list views you need to create a template override for a helper file. This article assumes that you have read, or at least printed for reference , the article about customising the event detail page.
Remove category from summary
Copy the file defaultvieweventcatrownew.php from components/com_jevents/views/default/helpers/defaultvieweventcatrownew.php to templates/{your template}/html/com_jevents/helpers/defaultvieweventcatrownew.php creating the folders if necessary. Then edit this new file and replace the function declaraton with
- Code:
-
function DefaultViewEventCatRowNew($view,$row,$args="") { }
Add extra fields to the summary
Copy the file defaultvieweventrownew.php from components/com_jevents/views/default/helpers/defaultvieweventrownew.php to templates/{your template}/html/com_jevents/helpers/defaultvieweventrownew.php creating the folders if necessary. Then edit this new file and go to the bottom just after :
- Code:
-
if( $cfg->get('com_byview') == '1' ) {
echo JText::_('JEV_BY') . ' '. $row->contactlink() .'';
}
remove the "?>" and add the following:
- Code:
-
echo "
".$row->content() ;
if (isset($row->_loc_title)){
echo " ". $row->_loc_title;
echo " ". $row->_loc_city
;
echo " ". $row->_loc_state;
echo " ". $row->_loc_country;
echo " ". $row->_loc_desc;
}
else {
echo " ". $row->location();
}
This will output the description of the event and its location alongside the title and category detail. You could also use access _loc_phone and _loc_url.
These changes will affect all the list views. Personally I think the year list view (with past events hidden in the config) is the best way to print a summary of forthcoming events