Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Path Finder LifeRay
Limit themes for organization
21 dicembre 2012 4.06
Risposta

Path Finder LifeRay

Punteggio: Expert

Messaggi: 262

Data di Iscrizione: 18 settembre 2009

Messaggi recenti

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
28 dicembre 2012 3.36
Risposta

Path Finder LifeRay

Punteggio: Expert

Messaggi: 262

Data di Iscrizione: 18 settembre 2009

Messaggi recenti

can any one help in that......
Jelmer Kuperus
RE: Limit themes for organization
28 dicembre 2012 5.37
Risposta

Jelmer Kuperus

Punteggio: Liferay Legend

Messaggi: 1192

Data di Iscrizione: 10 marzo 2010

Messaggi recenti

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
2 gennaio 2013 2.39
Risposta

Path Finder LifeRay

Punteggio: Expert

Messaggi: 262

Data di Iscrizione: 18 settembre 2009

Messaggi recenti

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