Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rick Osborn
Location of "My Communities" portlet source code???
January 17, 2013 1:30 PM
Answer

Rick Osborn

Rank: New Member

Posts: 3

Join Date: August 2, 2012

Recent Posts

Maybe I missed something. I didn't see it in any version of the SVN. I don't see it in the SDK.

Rick Osborn
http://www.meetup.com/Chicago-Liferay-Forum/
Opencontentmanagement.tumblr.com
Prakash Khanchandani
RE: Location of "My Communities" portlet source code???
January 21, 2013 1:26 AM
Answer

Prakash Khanchandani

Rank: Regular Member

Posts: 228

Join Date: February 10, 2011

Recent Posts

Here is the JSP code on git-hub and starting from Liferay 6.1 it is called as "My Sites" and not "My Communities".

Also you can search out the impl classes for this portlet. Also this portlet re-uses features (JSP & java code) from sites_admin portlet in the control panel.
Rick Osborn
RE: Location of "My Communities" portlet source code???
January 21, 2013 2:41 PM
Answer

Rick Osborn

Rank: New Member

Posts: 3

Join Date: August 2, 2012

Recent Posts

Actually I'm looking for the source for Liferay 6.1's "My Communities" portlet available from "Add" > "Community".
Not the one in the "Control Panel". I'd like to do a slight variation on it.

Rick Osborn
http://www.meetup.com/Chicago-Liferay-Forum/
Opencontentmanagement.tumblr.com
Prakash Khanchandani
RE: Location of "My Communities" portlet source code???
January 25, 2013 12:30 AM
Answer

Prakash Khanchandani

Rank: Regular Member

Posts: 228

Join Date: February 10, 2011

Recent Posts

That is what I wrote, starting from Liferay 6.1 GA1 the portlet which was
1Add --> Community --> My Commuties
is changed to
1Add --> Community --> My Sites


And this portlet "My Sites" shares some of the code with the control panel portlet "Sites Admin", so the JSP Code link I gave in my previous post takes you to the JSP of this My Sites portlet.

Here is the screen-shot, let me know if you are talking of something else:
Attachment

Attachments: my-sites.png (41.5k)
Rick Osborn
RE: Location of "My Communities" portlet source code???
January 25, 2013 7:48 AM
Answer

Rick Osborn

Rank: New Member

Posts: 3

Join Date: August 2, 2012

Recent Posts

Sorry, Prakesh. You are exactly right.

The "Sites Admin" portlet. Interesting. That clears up alot.
I'll look into that portal source code.

I started building my own portlet from scratch in the meantime. I only need the
API calls it makes. Probably something like "CommunityLocalServiceUtil".
I need to create/add/remove/delete Communities in a branded portlet.


richard osborn
opencontentmanagement.tumblr.com
www.meetup.com/Chicago-Liferay-Forum/
Hitoshi Ozawa
RE: Location of "My Communities" portlet source code???
January 26, 2013 4:11 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

May be something like GroupLocalServiceImpl

http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/GroupLocalServiceUtil.html
Prakash Khanchandani
RE: Location of "My Communities" portlet source code???
February 7, 2013 5:13 AM
Answer

Prakash Khanchandani

Rank: Regular Member

Posts: 228

Join Date: February 10, 2011

Recent Posts

Hitoshi is correct liferay uses GroupLocalServiceUtil and GroupServiceUtil to create/add/remove/delete Sites :-)

Thanks Hitoshi