Read the statement by Michael Teeuw here.
Get URL from Newsfeed (full article)
-
How do I get the url of the full article of the shown newsfeed?
Withvar title = this.newsItems[this.activeItem].title;I get the headline of the newsfeed.
With
var description = this.newsItems[this.activeItem].description;I get the description of the newsfeed.
But
var url = this.newsItems[this.activeItem].url;does not show anything.
With this URL I want to open the full article of the newsfeed. What do I wrong?
Greetings from Thuringia/Germany
-
Which newsfeed are you using? Did you open your newsfeed in a browser to see if there is an entry with url or link?
fetcher.js does this:
var url = item.url || item.link || "";So if you use the default news feed
http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xmlyou see there is an entrylinkas a child node ofitem. Maybe your newsfeed uses something other than url or link? -
Hi yawns.
I am using these newsfeeds http://www.tagesschau.de/xml/rss2 and https://thib24.de/feed.
I see no difference between the default newsfeed and my.So I myself have tried the default newsfeed and it also won’t work.
If I put out the url to log information
var url = this.newsitems[this.activeItem].url; Log.info("Article_URL " + url);the browser provide this information: Article_URL undefined.
-
Ok.
I’ve solved the problem. There wasn’t a url decleration in my fetcher.js.
I put it in to the fetcher.js an it works very well now.
Thanks for your help.Great forum.
Greetings from Thuringia/Germany
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login