Here is small snippet of code to check community level role in Themes. You can write the following code in init_custom.vm
#* Check for Community role for logged in user. *# #set ($blogEditorCummunityRole = 'Blog Editor') #set ($userHasBlogEditorRole = 'false') #* Get Role Local Service *# #set ($roleLocalService = $serviceLocator.findService("com.liferay.portal.service.RoleLocalService")) #* Get All community Level Role for current community and Current Logged In User *# #set ($communityRolesforUser = $roleLocalService.getUserGroupRoles($user_id,$group_id)) #* Iterate through the list of roles and Compare the Blog Editor Role *# #foreach ($communityRoleforUser in $communityRolesforUser) #if ($communityRoleforUser.getName() == $blogEditorCummunityRole) #set ($userHasBlogEditorRole= 'true') #end #end
Meet the Experts!
We cordially invite you to join us for a special 3-hour roadshow event hosted by Liferay, Inc. and Youngsoft, Inc. Many companies are finding vast improvements in web site design, management, productivity and ROI using Liferay. With the recent release of Liferay 6 EE, we want to provide our customers a forum to learn about and collaborate on the latest advancements in portals, content and collaboration.
Key technical and business leaders from both Liferay and Youngsoft will be attending and will be available to discuss questions specific to your web projects. Liferay will lead a presentation on the latest advances in portal and web technologies along with a review of Liferay 6 EE, after which Youngsoft will provide an in-depth discussion on Companies Benefiting from Liferay.
The atmosphere will be casual and conducive to networking, discussion and Q&A.
Host: Liferay, Inc. and Youngsoft, Inc
Venue City: Ann Arbor, MI
Date: September, 29th 2010
Time: 11:30 – 2:30 PM
Venue Address: Ann Arbor Brewing Company
114 East Washington Ann Arbor, MI 48104
How to Register: Click here
RSVP suggested, as space is limited. Note that this is a FREE event and that lunch is included.
49197 Wixom Tech Drive
Wixom, MI 48393 USA
Liferay 6 offers feature of Site Templates , where in you can design a site template . Using the newly designed template you can create multiple communities and organization on the fly. Just apply the template while creating those communities .
Site templates is nothing but a community which will act as a template for new communities. It will have Pages , Portlets , Content just as a regular community can.
Here are the steps to create a site template and create a community using the newly created site template.
We are approaching to Liferay east coast symposium very soon.Those who are still not aware can follow the event at Liferay East Coast Symposium 2010.
Its my pleasure to announce that Youngsoft Inc is the platinum sponsor this year. One of our consultant will be presenting case study on his client also.There will be lot of information at our demo booth .I will also be present there on both the days. Please do plan to drop by our demo booth and personally I would love to meet any of you during the event.
feel free to reach me @ firstname.lastname@example.org, email@example.com
Liferay 6 comes with new functionality , Page Templates. User can define a page with certain portlets/Layouts and Save the Page as templates. Later on while creating the new page , user can select the Page Template.
Here are the Steps :
Several new options are added in Control Panel -> Server Administration. Most important is migration of database. Attached are screenshots of few new additions
1) Migrating database and document library to another database.
Several new options which were earlier available in portal.properties file now can be configured in Control Panel -> Settings itself.
Examples -> Default landing page , logout page URLs , Available locales , Default Themes.