Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Path Finder LifeRay
Limit themes for organization
December 21, 2012 4:06 AM
Answer

Path Finder LifeRay

Rank: Expert

Posts: 262

Join Date: September 18, 2009

Recent Posts

Hi All,

I'm developing a multi-organization model using liferay6.0.

i have created 4 themes.i have created organizations and their respective users.

i have to give organization administrator role to the user but user should not get access to look and feel to change theme.

i came to know that can be possible with <company-limit> in theme how to use from control panel i'm getting siteID how to get company id and assign and

limit theme to particular organization.

can this be done by changing permissions using control panel?

can this be done at the time of theme creation? please help me

thanks and regards
path
Path Finder LifeRay
RE: Limit themes for organization
December 28, 2012 3:36 AM
Answer

Path Finder LifeRay

Rank: Expert

Posts: 262

Join Date: September 18, 2009

Recent Posts

can any one help in that......
Jelmer Kuperus
RE: Limit themes for organization
December 28, 2012 5:37 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

It sounds like you are creating different organisations, not companies and therefore you should probably be using <group-limit> and not <company-limit>

I never tried using this but

As far as i can tell you specify this constraint in your theme's WEB-INF/liferay-look-and-feel.xml file like so

 1<?xml version="1.0"?>
 2<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.1.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_1_0.dtd">
 3
 4<look-and-feel>
 5        ....
 6        <group-limit>
 7                <group-includes>
 8                       <group-id name="[YOUR GROUP ID]" />
 9                </group-includes>
10        </group-limit>
11</look-and-feel>


To find out the groupid for your organization execute the following query

1select o.name, g.groupId
2from group_ g, classname_ c, organization_ o
3where g.classNameId = c.classNameId and
4      g.classPK = o.organizationId and
5      c.value = 'com.liferay.portal.model.Organization'
Path Finder LifeRay
RE: Limit themes for organization
January 2, 2013 2:39 AM
Answer

Path Finder LifeRay

Rank: Expert

Posts: 262

Join Date: September 18, 2009

Recent Posts

Thanks for the information it was working for me.....