Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Kanmani Karthikeyan
Doubt in Blog Entry
13. Dezember 2012 23:29
Antwort

Kanmani Karthikeyan

Rang: Junior Member

Nachrichten: 25

Eintrittsdatum: 24. Januar 2012

Neue Beiträge

Hi to all
1) I want to display all the all the entry in blogs

BlogEntry entry;
entry.getEntryid() -- that will return last blog id ..
i want to retrieve all the blog (each post) entry id's that is posted by each user ..

user a -- post blog post a,b,c ;
user b -- post blog post d,e ;

how to differenciate sir ?

i have to display each user blogs in each users dashboard sir . am trying to develop as a my own portlet ..
Bijan Vakili
RE: Doubt in Blog Entry
14. Dezember 2012 08:30
Antwort

Bijan Vakili

Rang: Regular Member

Nachrichten: 139

Eintrittsdatum: 10. März 2009

Neue Beiträge

Hi Kanmani,
One way is to loop over each Group (see reference 1) and retrieve user's blog posts (see reference 2) from that group.

References:
1. Looping over all Groups: http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/GroupLocalServiceUtil.html#getCompanyGroups(long, int, int)
2. Getting all Blog posts by user for a particular group: http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portlet/blogs/service/BlogsEntryLocalServiceUtil.html#getGroupUserEntries(long, long, java.util.Date, int, int, int, com.liferay.portal.kernel.util.OrderByComparator)

Let me know if you have question.
Note: please follow Forum Guidelines and FAQs to mark posts as Questions; when answered, please update accordingly. Thanks! See http://www.liferay.com/community/forums/-/message_boards/message/572822
Hitoshi Ozawa
RE: Doubt in Blog Entry
16. Dezember 2012 14:31
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

Try using dynamicQuery and specify userId.
Kanmani Karthikeyan
RE: Doubt in Blog Entry
16. Dezember 2012 20:42
Antwort

Kanmani Karthikeyan

Rang: Junior Member

Nachrichten: 25

Eintrittsdatum: 24. Januar 2012

Neue Beiträge

Thank u so much Bijan Vakili .. Thanks a lot ..

I have choosen DynamicQuery Option . This is more convenient way for me.
http://www.liferay.com/community/wiki/-/wiki/Main/Queries+2%3A+DynamicQuery+API

I Have a one more question sir.

How to open liferay database .. where is it sir ?
&
i got blog source code in liferay svn repository.
http://svn.liferay.com/repos/public/portal/trunk/portal-impl/src/com/liferay/portlet/blogs/

how to deploy that in my local machine. tell me how to run this source code in my eclipse.

Thanks in Advance . Help me Brother.
Kanmani Karthikeyan
RE: Doubt in Blog Entry
16. Dezember 2012 20:42
Antwort

Kanmani Karthikeyan

Rang: Junior Member

Nachrichten: 25

Eintrittsdatum: 24. Januar 2012

Neue Beiträge

Thank u so much Hitoshi Ozawa.. Thanks a lot ..
I have choosen DynamicQuery Option . This is more convenient way for me.
http://www.liferay.com/community/wiki/-/wiki/Main/Queries+2%3A+DynamicQuery+API

I Have a one more question sir.

How to open liferay database .. where is it sir ?
&
i got blog source code in liferay svn repository.
http://svn.liferay.com/repos/public/portal/trunk/portal-impl/src/com/liferay/portlet/blogs/

how to deploy that in my local machine. tell me how to run this source code in my eclipse.

Thanks in Advance . Help me Brother.
Bijan Vakili
RE: Doubt in Blog Entry
18. Dezember 2012 08:35
Antwort

Bijan Vakili

Rang: Regular Member

Nachrichten: 139

Eintrittsdatum: 10. März 2009

Neue Beiträge

Hi Kanmani,

Please post one topic per thread;

In any case, you can try the following link for the database connection; also, the blogs portlet is a built-in portlet. Deploying it separately is not supported OOB, but you can overwrite it's functionality using hook or ext plugins.
http://www.liferay.com/community/wiki/-/wiki/Main/Connect+to+a+Database+with+Plugins+SDK
Kanmani Karthikeyan
RE: Doubt in Blog Entry
19. Dezember 2012 05:12
Antwort

Kanmani Karthikeyan

Rang: Junior Member

Nachrichten: 25

Eintrittsdatum: 24. Januar 2012

Neue Beiträge

Thank you Bijan Vakili Sir.

Am sorry for posting one more post.

Can u explain me some details about database browser engine mapping sir.

Thanks in advance.
Gaurav Jain
RE: Doubt in Blog Entry
18. Januar 2013 22:01
Antwort

Gaurav Jain

Rang: Regular Member

Nachrichten: 141

Eintrittsdatum: 31. Januar 2011

Neue Beiträge

Kanmani Karthikeyan:
Thank you Bijan Vakili Sir.

Am sorry for posting one more post.

Can u explain me some details about database browser engine mapping sir.

Thanks in advance.



Database Browser Engine mapping is not related to Liferay forum IMO emoticon
Although, you can use phpmyadmin incase of mysql database.

There is already a lot of info available on internet for ths. Try googling.

Any specific problem you are getting in database connection of your liferay portal?
Hitoshi Ozawa
RE: Doubt in Blog Entry
19. Januar 2013 09:04
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

Am sorry for posting one more post.

Can u explain me some details about database browser engine mapping sir.


Kanmani, if you feel truly sorry for not obeying the rule of this forum, then please don't post any another question because it's against the forum guideline. Please read the guideline before posting anything else.

http://www.liferay.com/community/forums/-/message_boards/message/572822