Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Mushfiq Khalid
Images RSS feed?
1. Februar 2011 03:45
Antwort

Mushfiq Khalid

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 1. Februar 2011

Neue 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.
Hitoshi Ozawa
RE: Images RSS feed?
2. Februar 2011 01:12
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue 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.
Manikandan S
RE: Images RSS feed?
22. August 2011 22:16
Antwort

Manikandan S

Rang: Expert

Nachrichten: 492

Eintrittsdatum: 15. September 2010

Neue 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?
Manikandan S
RE: Images RSS feed?
23. August 2011 05:52
Antwort

Manikandan S

Rang: Expert

Nachrichten: 492

Eintrittsdatum: 15. September 2010

Neue 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?
Anhang

Anhänge: img.png (171,1k)
Pranay R Patadiya
RE: Images RSS feed?
24. August 2011 00:55
Antwort

Pranay R Patadiya

Rang: Regular Member

Nachrichten: 181

Eintrittsdatum: 22. Februar 2010

Neue 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
Manikandan S
RE: Images RSS feed?
25. August 2011 02:52
Antwort

Manikandan S

Rang: Expert

Nachrichten: 492

Eintrittsdatum: 15. September 2010

Neue 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
1<c:if test="<%= (feedImage != null) && showFeedImage %>">
2    <div class="feed-image-<%= feedImageAlignment %>">
3        <aui:a href="<%= feedImageLink %>" target="_new" title="<%= feedImage.getTitle() %>"><img alt="<%= feedImage.getDescription() %>" src="<%= feedImageURL %>" /></aui:a>
4    </div>
5</c:if>


I might include the image object inside this loop,
1for (int j = 0; j < entries.size(); j++) {


For getting the content and the link we have use this code,
 1List entries = feed.getEntries();
 2    for (int j = 0; j < entries.size(); j++) {
 3        SyndEntry entry = (SyndEntry)entries.get(j);
 4        String entryLink = entry.getLink();
 5        if (Validator.isNotNull(entryLink) && !HttpUtil.hasDomain(entryLink)) {
 6            entryLink = baseURL + entryLink;
 7        }
 8        String author = entry.getAuthor();
 9        SyndContent content = entry.getDescription();
10        List contents = new ArrayList();
11            <aui:a href="<%= entryLink %>" target="_new"><%= entry.getTitle() %></aui:a>
12    }



How can I write the code to take images in the same loop?
Pranay R Patadiya
RE: Images RSS feed?
25. August 2011 00:17
Antwort

Pranay R Patadiya

Rang: Regular Member

Nachrichten: 181

Eintrittsdatum: 22. Februar 2010

Neue Beiträge

Hi,
To write the code for, you should check rome.jar available in portal for feed.


Thanks,
Pranay
Manikandan S
RE: Images RSS feed?
27. Oktober 2011 00:30
Antwort

Manikandan S

Rang: Expert

Nachrichten: 492

Eintrittsdatum: 15. September 2010

Neue Beiträge

What should i check in rome.jar file?
Manikandan S
RE: Images RSS feed?
27. Oktober 2011 04:33
Antwort

Manikandan S

Rang: Expert

Nachrichten: 492

Eintrittsdatum: 15. September 2010

Neue Beiträge

Any help from Liferay people? emoticon
Tapas Ranjan
RE: Images RSS feed?
28. August 2012 22:48
Antwort

Tapas Ranjan

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 27. August 2012

Neue 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.