Message Boards

How can I get the current community's name?

Cristina Vázquez, modified 16 Years ago.

How can I get the current community's name?

New Member Posts: 8 Join Date: 6/14/07 Recent Posts
Hi! I have to change my logout page to the init page of my community. So... Anybody knows how can I get the current community's name from java code? Maybe with ThemeDisplay??

I hope somebody can help me...

Thank you very much!!!
thumbnail
ivan wen, modified 16 Years ago.

RE: How can I get the current community's name?

Regular Member Posts: 104 Join Date: 11/14/06 Recent Posts
com.liferay.portal.model.Layout l = themeDisplay.getLayout();
com.liferay.portal.model.Group group = l.getGroup();
下面就是去这个group的name了!多看一下liferay community这个portlet的代码就完全明白了!



欢迎访问http://www.erpbo.com Liferay UserGroup Beijing!