Formatting text in Grid News

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
Sun Oct 04, 2015 3:29 am
Hello, I'm using Grid News layout. I wanted to know how to prevent the module break formatting. Example: I need what module to take the text the way it is in the item of the article.
I just need to display two text lines, one beneath the other and under an external link.
The module only need not break that formatting. Already well I inspected the Controller.php but with no success. Can you help me?
User avatar
Senior Boarder

teitbite
Sun Oct 04, 2015 8:56 pm
Hi

Please try set "Clean HTML code in the text" in article layout section to OFF.
User avatar
Moderator

GK User
Mon Oct 05, 2015 12:30 pm
Thanks for answering me. Not understand correctly how. Where am I supposed to set?
User avatar
Senior Boarder

GK User
Mon Oct 05, 2015 12:37 pm
I understand now. In module, section Text. But not worked
User avatar
Senior Boarder

teitbite
Mon Oct 05, 2015 1:52 pm
Hi

Than I will need to see Your site first. Please tell me the exact url to the page where I'll be able to see page from Your screen.
User avatar
Moderator

teitbite
Mon Oct 05, 2015 2:03 pm
Hi

Ok, please forget my last post. I've looked into the code and I think I know what needs to be changed. Please edit file /mod_news_pro_gk5/tmpl/portal_modes/grid_news/controller.php line 87:

Code: Select all
echo '<p>'.NSP_GK5_Utils::cutText(strip_tags($this->parent->content[$i]['text']), $this->parent->config, 'portal_mode_grid_news_text_length', '&hellip;').'</p>';


with

Code: Select all
echo '<p>'.NSP_GK5_Utils::cutText($this->parent->content[$i]['text'], $this->parent->config, 'portal_mode_grid_news_text_length', '&hellip;').'</p>';
User avatar
Moderator

GK User
Mon Oct 05, 2015 2:22 pm
http://agencia31.com.br/projeto/bullran ... /grid-news

Code used:

<p><strong>Sire: </strong> DAULÖKKE'S ELISIR D'AMORE<br /><strong>Dam:</strong> DAULÖKKE'S ARISTOBELLE DU TEX<br /><br />Pedigree: <a href="http://ingrus.net/frbull/en/details.php?id=32451">http://ingrus.net/frbull/en/details.php?id=32451</a></p>
User avatar
Senior Boarder

teitbite
Thu Oct 08, 2015 9:30 am
Hi

Sorry, but when I follow Your link all I can see is "Server cannot be found message".
User avatar
Moderator


cron