Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mushfiq Khalid
Images RSS feed?
February 1, 2011 3:45 AM
Answer

Mushfiq Khalid

Rank: New Member

Posts: 1

Join Date: February 1, 2011

Recent Posts

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?
February 2, 2011 1:12 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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?
August 22, 2011 10:16 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

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?
August 23, 2011 5:52 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

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?
Attachment

Attachments: img.png (171.1k)
Pranay R Patadiya
RE: Images RSS feed?
August 24, 2011 12:55 AM
Answer

Pranay R Patadiya

Rank: Regular Member

Posts: 181

Join Date: February 22, 2010

Recent Posts

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?
August 25, 2011 2:52 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

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?
August 25, 2011 12:17 AM
Answer

Pranay R Patadiya

Rank: Regular Member

Posts: 181

Join Date: February 22, 2010

Recent Posts

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


Thanks,
Pranay
Manikandan S
RE: Images RSS feed?
October 27, 2011 12:30 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

What should i check in rome.jar file?
Manikandan S
RE: Images RSS feed?
October 27, 2011 4:33 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Any help from Liferay people? emoticon
Tapas Ranjan
RE: Images RSS feed?
August 28, 2012 10:48 PM
Answer

Tapas Ranjan

Rank: New Member

Posts: 1

Join Date: August 27, 2012

Recent Posts

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.