?
avatar PhilETaylor
PhilETaylor
21 Jun 2020

Steps to reproduce the issue

Create a new feed display site module with RSS feed url of https://www.nytimes.com/svc/collections/v1/publish/https://www.nytimes.com/section/world/rss.xml

Set the word count to 0 - load front page to see the module

Screenshot 2020-06-21 at 18 24 58

set the word count to 5 - load the front page and compare.

Screenshot 2020-06-21 at 18 24 15

Expected result

5 words of each RSS feed item

Actual result

... in each item.

Screenshot 2020-06-21 at 18 24 40

System information (as much as possible)

Additional comments

avatar PhilETaylor PhilETaylor - open - 21 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Jun 2020
avatar PhilETaylor PhilETaylor - change - 21 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 21 Jun 2020
avatar SharkyKZ
SharkyKZ - comment - 22 Jun 2020

The label says word count but the code handling this is for character count.

avatar PhilETaylor
PhilETaylor - comment - 22 Jun 2020

Well even if that is the case, it’s not working as a char count as regardless what it’s set to all I get is ...

avatar SharkyKZ
SharkyKZ - comment - 22 Jun 2020

You do get "The..." in one of the entries. So that's working fine.

avatar PhilETaylor PhilETaylor - change - 22 Jun 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-06-22 07:42:39
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 22 Jun 2020
avatar PhilETaylor PhilETaylor - change - 22 Jun 2020
Status Closed New
Closed_Date 2020-06-22 07:42:39
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - reopen - 22 Jun 2020
avatar SharkyKZ
SharkyKZ - comment - 22 Jun 2020

Before e3ccc0d this was indeed used as word count.

avatar brianteeman
brianteeman - comment - 22 Jun 2020

string.truncate counts characters not words

avatar jwaisner jwaisner - change - 28 Jun 2020
Status New Confirmed
avatar jwaisner jwaisner - change - 28 Jun 2020
Build staging 4.0-dev-b2
avatar ghost
ghost - comment - 20 Sep 2020

string.truncate counts characters not words

Word Count > Character Count

avatar bembelimen bembelimen - change - 28 Dec 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-12-28 22:53:44
Closed_By bembelimen
avatar bembelimen bembelimen - close - 28 Dec 2020
avatar bembelimen
bembelimen - comment - 28 Dec 2020

Closed as having a PR

Add a Comment

Login with GitHub to post a comment