掲示板

Recent blogers link not working?

thumbnail
14年前 に domingo l hilario によって更新されました。

Recent blogers link not working?

Junior Member 投稿: 46 参加年月日: 09/02/05 最新の投稿
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
14年前 に Amos Fong によって更新されました。

RE: Recent blogers link not working?

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
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
14年前 に domingo l hilario によって更新されました。

RE: Recent blogers link not working?

Junior Member 投稿: 46 参加年月日: 09/02/05 最新の投稿
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
14年前 に Amos Fong によって更新されました。

RE: Recent blogers link not working?

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
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
14年前 に domingo l hilario によって更新されました。

RE: Recent blogers link not working?

Junior Member 投稿: 46 参加年月日: 09/02/05 最新の投稿
that makes total sense. I did what you told me and now is displaying the latest entries. Thanks for your reply