Fórum

Recent blogers link not working?

thumbnail
domingo l hilario, modificado 14 Anos atrás.

Recent blogers link not working?

Junior Member Postagens: 46 Data de Entrada: 05/02/09 Postagens Recentes
Hello guys, I have problem displaying the blogs from the recent blogger link. When I click on some one links from their recent blogger it does nothing. How can I fix this issue. I am using liferay 5.2.2 version. Below is the blog link

http://www.cn2.com:8080/web/guest/blog

I need some help thanks
thumbnail
Amos Fong, modificado 14 Anos atrás.

RE: Recent blogers link not working?

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Hi Domingo,

It has to do with the showAllEntries variable. Basically it just goes to the blog portlet (therefore "showing all entries") where he blogged instead of the actual blog entry (which looks like it does nothing to you because the blog is on the same page).

You can test by going to trying these URLs and seeing what they do:

http://www.cn2.com:8080/c/blogs/find_entry?entryId=28487&showAllEntries=1
http://www.cn2.com:8080/c/blogs/find_entry?entryId=28487&showAllEntries=0

For some reason it doesn't looks like this is part of the configuration options...so I guess you'll have to edit the JSP.

Nice site by the way emoticon
thumbnail
domingo l hilario, modificado 14 Anos atrás.

RE: Recent blogers link not working?

Junior Member Postagens: 46 Data de Entrada: 05/02/09 Postagens Recentes
Thanks Amos for your reply.

I have edited the recent blogger portlet and added few new lines of code to get it working, for some reasons the viewAllEntry=1 is not working is pulling all the blogs instead of pulling just the entry for the current user. Right now I am getting the latest blog entry when I click on the recent blogger image, but I really want to get all the entry for that user when its click on its profile image or link.

I would like to know how does the blogger works for liferay.com or if I could have a war file of that portlet, that one seems to be working very well. So why does the blog for liferay 5.2 version does not work like that one on their liferay site when it is the same portal after all.
thumbnail
Amos Fong, modificado 14 Anos atrás.

RE: Recent blogers link not working?

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
I think Liferay uses the default blogs and recent bloggers portlet. The difference between your site and Liferay.com is that in Liferay.com, each user has his own blog. In your site, it looks like all the users post to the same blog.

Therefore when you click in Liferay.com, it goes to their blog which naturally shows the latest blog first.

What you need to do is set showAllEntries = 0. It is a boolean that will "Show all entries" of the blog. If set to zero, it should open that specific blog entry. Does that make sense?
thumbnail
domingo l hilario, modificado 14 Anos atrás.

RE: Recent blogers link not working?

Junior Member Postagens: 46 Data de Entrada: 05/02/09 Postagens Recentes
that makes total sense. I did what you told me and now is displaying the latest entries. Thanks for your reply