1
rgauci
Full Text RSS for Publisher module
  • 2012/2/22 16:39

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I have a client asking for a "full-text" RSS feed from our site. We publish sports news using Publisher module.

As you know the RSS Icon is on the Publisher Categories page so all the Headlines, Image and scoop come up. If one wants to read the full article one has to click on the headline and it takes him straight to the whole article onto our website.

Is there a hack or easy way to extend backend.php to include the ability to read the whole article and not just the teaser? Also there might need to hack the publisher_rss.html file to?

Thanks in advance
Ray
Be Set FREE!

2
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/23 12:05

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I have managed to locate this code in /publisher/backend.php

'description' => htmlspecialchars($item->getBlockSummary(300, true), ENT_QUOTES)));

which picks up the Summany of each particular articles, so I think if I can change BlockSummary to ItemText or similar might work for the Full RSS to show the whole article instead just the teaser.

Perhaps Trabis could look at this!

I need a solution asap please. Thanks

Be Set FREE!

3
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/24 14:51

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Any ideas Folks would be appreciated!!!!
Happy weekend to all xoopers.
Be Set FREE!

4
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/25 16:59

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I need this to be sorted by Monday or else I loose it all!
Help please especially those who are good at Publisher Module

Just a reminder of my needs:

'description' => htmlspecialchars($item->getBlockSummary(300, true), ENT_QUOTES)));

which picks up the Summany of each particular articles, so I think if I can change BlockSummary to ItemText or similar might work for the Full RSS to show the whole article instead just the teaser. What is that part of code???? to replace.
Be Set FREE!

5
nmshah
Re: Full Text RSS for Publisher module
  • 2012/2/25 19:44

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


remove these lines and check if it works for you

6
iHackCode
Re: Full Text RSS for Publisher module

this will show the whole body.

'description' => htmlspecialchars(strip_tags($item->plain_maintext(),'
'), ENT_QUOTES)));
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

7
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/26 8:21

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Many thanks iHackCode as your code did show the full body but it is also showing the text as with no paragraph breaks at all something like this:

Quote:
Dr Morse was the first to publish in medical journals the phenomena of near-death experiences in children.

Lazarus is the first recorded near-death experiences by Jesus in the Bible.

Luke 16 New International Version

The Rich Man and Lazarus


..Instead of:

Quote:
Dr Morse was the first to publish in medical journals the phenomena of near-death experiences in children.

Lazarus is the first recorded near-death experiences by Jesus in the Bible.
Luke 16 New International Version

The Rich Man and Lazarus

and no bold type etc comes up

Many thanks again as for your continuous help.
Ray
Be Set FREE!

8
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/26 19:09

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Bump???
Be Set FREE!

9
bjuti
Re: Full Text RSS for Publisher module
  • 2012/2/27 13:43

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Try something like this

<{$item}>

]]>


or try inestead of $item somethinlike $item.text $item.body (check in templates what's the tag for whole text). Sorry I'm writing you inna hurry.

10
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/27 14:56

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


the tag for the whole text I think is $item.maintext

so whats best to code it?
Be Set FREE!

Login

Who's Online

307 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 307


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits