Thank you for your help so far teitbite.
I will just keep updating the core model.php file with the code that I was able to work on. =)
For the record:
1) Created adittional table in xxx_content called intro_text
2) Edited data_sources/com_content/model.php line 287:
- Code: Select all
// second SQL query to get rest of the data and avoid the DISTINCT
$second_query_news = '
SELECT
content.id AS iid,
'.($config['use_title_alias'] ? 'content.alias' : 'content.title').' AS title,
content.'.$config['com_content_text_type'].' AS text,
content.'.($config['date_publish'] == 0 ? 'created' : ($config['date_publish'] == 1 ? 'publish_up' : 'publish_down')).' AS date,
content.publish_up AS date_publish,
content.intro_text AS lead,
content.hits AS hits,
content.images AS images,
content.featured AS frontpage,
content.access AS access,
content.language AS lang,
categories.title AS catname,
users.email AS author_email,
content.created_by_alias AS author_alias,
'.$config['username'].' AS author_username,
content_rating.rating_sum AS rating_sum,
content_rating.rating_count AS rating_count,
CASE WHEN CHAR_LENGTH(content.alias)
THEN CONCAT_WS(":", content.id, content.alias)
ELSE content.id END as id,
CASE WHEN CHAR_LENGTH(categories.alias)
THEN CONCAT_WS(":", categories.id, categories.alias)
ELSE categories.id END as cid
3) Created overrride in template folder: templates/g5_hydrogen/html/mod_news_pro_gk5/view.php line 78, i can either replace $item['text'] or add $item['lead'].
- Code: Select all
$output_html = '<p class="nspText'.$class.'">';
$output_html .= $item['lead'];
$output_html .= $item['text'];
//$output_html .= print_r($item, true);
if($config['news_content_readmore_pos'] == 'after') {
$output_html .= ' ' . $readmore;
}
$output_html .= '</p></div>';