Foren
Images RSS feed?
Mushfiq Khalid, geändert vor 13 Jahren.
Images RSS feed?
New Member Beitrag: 1 Beitrittsdatum: 01.02.11 Neueste Beiträge
Hi, I have setup the RSS portlet to display feeds from news websites, such as BBC and Yahoo News, what I was wondering was that is it possible that the portlet shows inline images with the headlines and a small summary of the news article because right now the portlet just shows the news article and the headline, no images. I have even checked the show images option in the configuration.
I would appreciate if some one would set me on the right way here.
P.S. I'm trying something of the netvibes look.
I would appreciate if some one would set me on the right way here.
P.S. I'm trying something of the netvibes look.
Hitoshi Ozawa, geändert vor 13 Jahren.
RE: Images RSS feed?
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
The current RSS portlet is based on Rome. I think it necessary to create a new portlet based on Abdera to use images.
Mani kandan, geändert vor 12 Jahren.
RE: Images RSS feed?
Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
I am also having the same problem. I need to show the image when the url loads in the rss view page.
Is it possible to customize it?
Is it possible to customize it?
Mani kandan, geändert vor 12 Jahren.
RE: Images RSS feed?
Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Now I can able to show image in rss feed portlet(view.jsp).
But now the problem is, I can see only one image instead of more than one images in rss feed.
Here I have attached the screen shot, there I can able to see only one image instead of many images for other links.
I think i need to change in feed.jspf file.
Any help from Liferay Team?
But now the problem is, I can see only one image instead of more than one images in rss feed.
Here I have attached the screen shot, there I can able to see only one image instead of many images for other links.
I think i need to change in feed.jspf file.
Any help from Liferay Team?
Anhänge:
Pranay R Patadiya, geändert vor 12 Jahren.
RE: Images RSS feed?
Regular Member Beiträge: 177 Beitrittsdatum: 23.02.10 Neueste Beiträge
Hi,
Yes, you are right.
You have to change the feed.jspf as in that file they have looped the content and showing images for first feed only.
So, you have to write code to take image also in the same loop. That will solve your issue.
Let me know if you want anything else.
Thanks,
Pranay
Yes, you are right.
You have to change the feed.jspf as in that file they have looped the content and showing images for first feed only.
So, you have to write code to take image also in the same loop. That will solve your issue.
Let me know if you want anything else.
Thanks,
Pranay
Mani kandan, geändert vor 12 Jahren.
RE: Images RSS feed?
Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Yes I tried. But I don't know how to create object for image feed.
As this code is for showing only one image and it was out of the loop
I might include the image object inside this loop,
For getting the content and the link we have use this code,
How can I write the code to take images in the same loop?
As this code is for showing only one image and it was out of the loop
<c:if test="<%= (feedImage != null) && showFeedImage %>">
<div class="feed-image-<%= feedImageAlignment %>">
<aui:a href="<%= feedImageLink %>" target="_new" title="<%= feedImage.getTitle() %>"><img alt="<%= feedImage.getDescription() %>" src="<%= feedImageURL %>"></aui:a>
</div>
</c:if>
I might include the image object inside this loop,
for (int j = 0; j < entries.size(); j++) {
For getting the content and the link we have use this code,
List entries = feed.getEntries();
for (int j = 0; j < entries.size(); j++) {
SyndEntry entry = (SyndEntry)entries.get(j);
String entryLink = entry.getLink();
if (Validator.isNotNull(entryLink) && !HttpUtil.hasDomain(entryLink)) {
entryLink = baseURL + entryLink;
}
String author = entry.getAuthor();
SyndContent content = entry.getDescription();
List contents = new ArrayList();
<aui:a href="<%= entryLink %>" target="_new"><%= entry.getTitle() %></aui:a>
}
How can I write the code to take images in the same loop?
Pranay R Patadiya, geändert vor 12 Jahren.
RE: Images RSS feed?
Regular Member Beiträge: 177 Beitrittsdatum: 23.02.10 Neueste Beiträge
Hi,
To write the code for, you should check rome.jar available in portal for feed.
Thanks,
Pranay
To write the code for, you should check rome.jar available in portal for feed.
Thanks,
Pranay
Mani kandan, geändert vor 12 Jahren.
RE: Images RSS feed?
Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
What should i check in rome.jar file?
Mani kandan, geändert vor 12 Jahren.
RE: Images RSS feed?
Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Any help from Liferay people?
Tapas Ranjan, geändert vor 11 Jahren.
RE: Images RSS feed?
New Member Beitrag: 1 Beitrittsdatum: 27.08.12 Neueste Beiträge
Hi Mani what have u done to show the images in the RSS feed.
I am struggling to show the images in the RSS feed.
I am struggling to show the images in the RSS feed.