jquery-rss icon indicating copy to clipboard operation
jquery-rss copied to clipboard

Assigning Description to Token?

Open danleecreates opened this issue 9 years ago • 4 comments

I'm wanting to strip some read more text that my rss feed has added into the description area of a feed entry.

Looking at the documentation the following is how I would fetch the title and assign to a token. How do I do the same for the description? "entry.description" doesn't work and I have guessed alternatives without success 😄 .

tokens: {
   altTitle: function(entry, tokens){ return "Article: " + entry.title },
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

danleecreates avatar Jul 17 '16 13:07 danleecreates

I figured it out by looking at the source;

The solution: entry.contentSnippet

danleecreates avatar Jul 17 '16 13:07 danleecreates

Hello,

Like nearkingdom, I am looking for a way to get description tag of my rss feed.

It is particularly strange not to have access to this entry since it is a mandatory tag in rss feed.

However, this wonderful plugin is able to access content:encoded tag in my rss feed.

Do you think it is easy to add the description entry?

Thanks in advance and have a nice day.

slolo2000 avatar Sep 05 '17 13:09 slolo2000

Hello, So i am trying to access (url,author, date, title, body, etc) in : entryTemplate:'

  • [{author}@{date}] {title}
    {teaserImage}{body}
  • ',
    FROM success: function (data) {} BUT i get that data is undefined. Please help!

    dev201730 avatar Dec 22 '17 10:12 dev201730

    Hello, So i am trying to access (url,author, date, title, body, etc) in : entryTemplate:'{url}{author}{date}{title}{teaserImage}{body}', FROM success: function (data) {} BUT i get that data is undefined, and therefore i get nothing when i do data.url or data.teaserImage Please help!

    dev201730 avatar Dec 22 '17 10:12 dev201730