module mode news block can be changed ??

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Apr 02, 2014 4:00 pm
using the gk5 news show and set up the module mode News Block and tried to modify that one but without any luck
would like to use the article name instead of More Details which shows up for each one.
any idea ??
User avatar
Fresh Boarder

teitbite
Wed Apr 02, 2014 9:58 pm
Hi

Please edit file /modules/mod_news_pro_gk5/portal_modes/news_blocks/controller.php and in line 60 which should looks like this:

Code: Select all
         echo JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_NEWS_BLOCKS_MORE');


and replace it with:

Code: Select all
         echo strip_tags($this->parent->content[$i]['title']);

User avatar
Moderator

GK User
Thu Apr 03, 2014 8:21 am
cool, thanks a lot, works pretty cool

just one more thing, the title which shows up is the unicode title but i want to show the title i gave the articles

the code now is like this and really don t know what to change

echo '<figcaption>';
echo '<h3><strong>'.$title.'</strong>'.$title.'</h3>';
echo '<a href="'.$this->get_link($i).'" title="'.strip_tags($this->parent->content[$i]['title']).'">';
echo strip_tags($this->parent->content[$i]['title']);
echo '</a>';
echo '</figcaption>';
echo '</figure>';
User avatar
Fresh Boarder

teitbite
Thu Apr 03, 2014 7:53 pm
Hi

I'm not sure what You mean by "unicode title", but I think You just should remove strip_tags() function. So replaced line should be like:

Code: Select all
echo $this->parent->content[$i]['title'];
User avatar
Moderator

GK User
Sat Apr 05, 2014 9:45 am
well, still not working properly - unicode i meant the alias-title which shows up but not the normal title
when i changed the script it showed the title_alias and i am using strange names for that and don t want to show those titles
what i did so far is taking off the title parts so it doesn t show any title yet just the more details link
code looks like this now

echo '<figcaption>';
echo '<a href="'.$this->get_link($i).'" title="'.strip_tags($this->parent->content[$i]['title']).'">';
echo JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_NEWS_BLOCKS_MORE');
echo '</a>';
echo '</figcaption>';
echo '</figure>';

what i want is that it just shows the normal title as a link next to the image and can t get it done


as well when using the title overlay model it just show 1 link to article and not more - any idea why is that

thanks for help
User avatar
Fresh Boarder

teitbite
Sun Apr 06, 2014 1:05 pm
Hi

It looks like that, becuase it's one of special styles of this module and was designed this way. Please send me an access to ftp so I'll make some dumps and find the value with title.
User avatar
Moderator


cron