Add introtext to NSP Technews reviews

September 2015 Joomla Template
GK User
Sun Oct 04, 2015 11:42 am
Hi,

I'm trying to get introtext in technews reviews with this:

Code: Select all
$this->parent->content[$i]['text']


but i'm getting all the text except the introtext. I've tried also with no results:

Code: Select all
$this->parent->content[$i]['introtext']
$this->parent->content[$i]['intro-text']
$this->parent->content[$i]['intro_text']


Thanks in advance.
User avatar
Senior Boarder

teitbite
Sun Oct 04, 2015 9:01 pm
Hi

I'm afraid NSP does not support introtext. This module is prepared for multiple sources, also solutions where intortext is not provided. This is why we have created a possibility to cut the text to the selected number of chars or words of any source instead of introtext.
User avatar
Moderator

GK User
Mon Oct 05, 2015 9:30 am
That would be fine, but the thing is that
Code: Select all
$this->parent->content[$i]['text']
doesn't get the introtext, it takes only the text after the introtext.

For me the possibility to cut the text to the selected number of chars or words would be nice but i don't know why introtext is hidden and only text after readmore appears.

any clue?
User avatar
Senior Boarder

teitbite
Mon Oct 05, 2015 9:46 am
Hi

Can You please tell me what type of article source are we talking about here ? Tell me the url to the page with an example and FTP access. If it's divided already than maybe it was added by programmers in one of the recent updates. I need to check it.
User avatar
Moderator

teitbite
Mon Oct 05, 2015 12:52 pm
Hi

I got an access, thank You, but I do not know which module You want to do this transformation for. Can You please tell me exactly.
User avatar
Moderator

GK User
Mon Oct 05, 2015 12:58 pm
Sure!

It's named "PROCESO CREATIVO" @ mainbody position.

Thx!
User avatar
Senior Boarder

teitbite
Mon Oct 05, 2015 2:43 pm
Hi

I've made a test and introtext is working just fine. I think You have not selected to use introtext in K2 additional settings. Please look at my screen:
User avatar
Moderator

GK User
Mon Oct 05, 2015 2:59 pm
Ok great!

As I inserted that line in the controller.php I didn't know that there was a setting in the module config that affects that new line.

Thank you very much!
User avatar
Senior Boarder

GK User
Mon Oct 05, 2015 3:02 pm
Have a new one,

the autoanimation stops after the second item. It gets stuck in ESTUDIO DE MARCA.

:dry:
User avatar
Senior Boarder

teitbite
Thu Oct 08, 2015 9:49 am
Hi

I need to show this to programmers first. Will let You know when I'll have an answer.
User avatar
Moderator

teitbite
Thu Oct 08, 2015 1:35 pm
Hi

Programmers has fixed it by editing file: mod_news_pro_gk5/tmpl/portal_modes/technews_reviews/script.jquery.js and changing line 37 from:

Code: Select all
         if(ProgressBar) {


to

Code: Select all
         if(ProgressBar && circles[current]) {
User avatar
Moderator

GK User
Thu Oct 08, 2015 4:14 pm
Hi,

I have already
Code: Select all
if(ProgressBar && circles[current]) {
at line 37 :cry:
User avatar
Senior Boarder

GK User
Thu Oct 08, 2015 4:17 pm
Ok,

i changed it to:

Code: Select all
         if(ProgressBar) {


and then to

Code: Select all
         if(ProgressBar && circles[current]) {


again and now it works! :lol:
User avatar
Senior Boarder

teitbite
Mon Oct 12, 2015 1:18 pm
Hi

Haha. I must have read the message from programmers wrong than ;/ Happy You were able to figure it out :)
User avatar
Moderator


cron