Tribune

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

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Mushfiq Khalid
Images RSS feed?
1 febbraio 2011 3.45
Risposta

Mushfiq Khalid

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 1 febbraio 2011

Messaggi recenti

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 febbraio 2011 1.12
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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 agosto 2011 22.16
Risposta

Manikandan S

Punteggio: Expert

Messaggi: 492

Data di Iscrizione: 15 settembre 2010

Messaggi recenti

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 agosto 2011 5.52
Risposta

Manikandan S

Punteggio: Expert

Messaggi: 492

Data di Iscrizione: 15 settembre 2010

Messaggi recenti

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

Allegati: img.png (171,1k)
Pranay R Patadiya
RE: Images RSS feed?
24 agosto 2011 0.55
Risposta

Pranay R Patadiya

Punteggio: Regular Member

Messaggi: 181

Data di Iscrizione: 22 febbraio 2010

Messaggi recenti

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 agosto 2011 2.52
Risposta

Manikandan S

Punteggio: Expert

Messaggi: 492

Data di Iscrizione: 15 settembre 2010

Messaggi recenti

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 agosto 2011 0.17
Risposta

Pranay R Patadiya

Punteggio: Regular Member

Messaggi: 181

Data di Iscrizione: 22 febbraio 2010

Messaggi recenti

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 ottobre 2011 0.30
Risposta

Manikandan S

Punteggio: Expert

Messaggi: 492

Data di Iscrizione: 15 settembre 2010

Messaggi recenti

What should i check in rome.jar file?
Manikandan S
RE: Images RSS feed?
27 ottobre 2011 4.33
Risposta

Manikandan S

Punteggio: Expert

Messaggi: 492

Data di Iscrizione: 15 settembre 2010

Messaggi recenti

Any help from Liferay people? emoticon
Tapas Ranjan
RE: Images RSS feed?
28 agosto 2012 22.48
Risposta

Tapas Ranjan

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 27 agosto 2012

Messaggi recenti

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.