Ok mate, I think I got it somehow. It's not a fancy tweak at all, but it serves the purpose I need. Please tell me if I have to change something or if may be there is some kind of security issue or something.
You can check it out hereFirst of all I just created an override folder inside my template (in this case John S.), so the folder looks like:
- Code: Select all
templates/gk_john_s/html/mod_news_pro_gk5/portal_modes/portfolio2
and inside I put these two files:
- Code: Select all
controller.php
script.jquery.js
What I figured out was no to create a new var for the intro text (I didn't how to do that or where) so instead I thought about replacing the author variable definition with the article text according to model.php
So, I only changed 3 lines in those 2 files.
controller.php Line 69Erase everything except for data-author, data-author-text and data-img, and replace content[$i]['author_username'] with content[$i]['text'], so it looks like this:
- Code: Select all
echo 'data-author="'.$this->parent->content[$i]['text'].'"
data-author-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_AUTHOR_TEXT').'"
data-img="'.strip_tags($this->get_image($i)).'"';
script.jquery.jsLine 36Erase the html tags for date and category and leave only the author tag (now the text)
Line 122Erase the "Author" title above the author name, so now the "author" var it displays only the intro text.