READMORE configuration: hack or config ?

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
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
Thu Mar 24, 2011 12:35 pm
Hello,

I would like the READMORE button to be displayed only if
- the article text could not be shown within the maximum number of words to display
- or if within this maximum number of words a <hr id="system-readmore" /> appears

Is this possible via configuration of NSP or do I need to hack NSP ?

PS: I use NSP with "Clean (X)HTML" set to Off.

Regards,
User avatar
Junior Boarder

GK User
Fri Apr 01, 2011 11:20 am
The lack of answer on this forum for a such a simple question is a bit disappointing.

I went for a hack. Limited to normal article content. I didn't investigate the the other source of content.
Anyone interested in that hack, just PM me.
Cheers,
User avatar
Junior Boarder

teitbite
Fri Apr 01, 2011 3:09 pm
Hi

Hack it is!

Sorry for now answering, means Your post must have been missed.

Is the hack working fine ? I thought the Clean (X)HTML off prevents the article to be cutted. This is because of validation errors which may occure while cutting in the middle of HTML tab.
User avatar
Moderator

GK User
Tue Apr 05, 2011 7:42 pm
Hi,
The hack works fine.
It has nothing to do with Cleaned HTML. All I do is is retrieving the presence of a fulltext in the article data and the fact that the function cuttext has cutted the text. If both are false then I don't show the Readmore button.

But for the Cleaned HTML, you are right, your cuttext function may bring some problems when Cleaned HTML is set to off and the cut text is not valid HTML. It's a risk. But I definitely need the links within the articles to remains active in the module.
User avatar
Junior Boarder

teitbite
Thu Apr 07, 2011 10:04 am
Hi

Right :) Great solution btw.
User avatar
Moderator


cron