掲示板

Web content display for different organization members

11年前 に sangeeth k によって更新されました。

Web content display for different organization members

Regular Member 投稿: 114 参加年月日: 12/04/22 最新の投稿
Hi team,

I have a issue regarding web content management i am using 6.1 version,

In my home page(site page) I have a web content I need to display content

Here I have 10 organizations If organization user login i need to display that organization content in the same portlet same page.

is it manageable through admin...how can?


Thanks
thumbnail
11年前 に Tejas Kanani によって更新されました。

RE: Web content display for different organization members

Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
Hi Sangeeth,

One way could be using Web Content Structure & Template by which you can display different content on conditional bases on the same web content display portlet.

Using structure and template, create different content for different organization. Like in structure one field will store organization name and 2nd field will store content to be displayed. And while rendering the content, based on the organization name display respective content.
11年前 に sangeeth k によって更新されました。

RE: Web content display for different organization members

Regular Member 投稿: 114 参加年月日: 12/04/22 最新の投稿
Thanks for reply tejas,

I have a 1 question where can i crate different contents? global scope or default scope?
thumbnail
11年前 に vaseem bari によって更新されました。

RE: Web content display for different organization members

Junior Member 投稿: 86 参加年月日: 08/03/26 最新の投稿
I am also facing some related problem.
Very nice logic, but how do i share the content over org/groups ?
I mean if org A admin posts some content X with your logic , and Org B post some content Y with your logic.
How can i display content X or Y in the same page?
and if a person belog to org A visits that page he should see cintent X, if a person from Org B comes he should see content Y.

Rgds
Vaseem Bari
thumbnail
11年前 に Tejas Kanani によって更新されました。

RE: Web content display for different organization members

Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
Content should be created under Global scope so that it can be shared across org.
So that if UserA from OrgA gets logged in he will see ContentA and if UserB from OrgB gets logged in he will see ContentB.
And in data in web content could be

Structure,
field1 - orgName (repeatable)
field2 - dataDisplay (repeatable)

Data would look like something,
1) orgName = OrgA, dataDisplay = ContentA
1) orgName = OrgB, dataDisplay = ContentB

And in template if we compare current Org Name with orgName value, we can display respective dataDisplay. So in this same web content holds the data for every organization just we are displaying particular data based on the current org.
And in both Organization(OrgA & OrgB ) pages we'll have to put separate web content display portlet with Global Scope selected. But it will use same web content which we've create with Global Scope.

I've not manually tried the solution, just putting out my thoughts.
11年前 に sangeeth k によって更新されました。

RE: Web content display for different organization members

Regular Member 投稿: 114 参加年月日: 12/04/22 最新の投稿
Hi tejas,

nice information thanks tejas, for reply,

Another question how do I get organization names in web content.

#set ($myPlaces = $user.getOrganizations())
$myPlace.getName()

I am trying above code No luck!!!
can you help in this regard...
thumbnail
11年前 に Hitoshi Ozawa によって更新されました。

RE: Web content display for different organization members

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
I usually let page editors edit their own web contents and structures and templates are usually beyond their knowledge.

As a simple solution to your problem, I just let them create separate web contents for each organization and set permission of web content so users in an organization will only be able to view web content they have permission to.
11年前 に sangeeth k によって更新されました。

RE: Web content display for different organization members

Regular Member 投稿: 114 参加年月日: 12/04/22 最新の投稿
Hi Hitoshi Ozawa Thanks for reply,

As your suggestion,
create separate web contents for each organization and set permission of web content so users in an organization will only be able to view


The above statement is right but my scenario is this:

In my home page(site page) I have a web content I need to display content

Here I have 10 organizations If organization user login i need to display that organization content in the same portlet same page.


Can you explain briefly......I am in little confuse.....................
thumbnail
11年前 に Hitoshi Ozawa によって更新されました。

RE: Web content display for different organization members

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Do you really have to show different content for each organization in the same web content?
If you just create different web content portlet for each organization and set view permission so only one organization will be able to view, each organization would see only one web content.

Using velocity template to control which organization will be shown what is defeating the use of web content portlet - why not just create a simple portlet yourself from scratch?
11年前 に sangeeth k によって更新されました。

RE: Web content display for different organization members

Regular Member 投稿: 114 参加年月日: 12/04/22 最新の投稿
Thank you Hitoshi Ozawa for your kind information,