Message Boards

Web content display for different organization members

sangeeth k, modified 11 Years ago.

Web content display for different organization members

Regular Member Posts: 114 Join Date: 4/22/12 Recent Posts
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
Tejas Kanani, modified 11 Years ago.

RE: Web content display for different organization members

Liferay Master Posts: 654 Join Date: 1/6/09 Recent Posts
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.
sangeeth k, modified 11 Years ago.

RE: Web content display for different organization members

Regular Member Posts: 114 Join Date: 4/22/12 Recent Posts
Thanks for reply tejas,

I have a 1 question where can i crate different contents? global scope or default scope?
thumbnail
vaseem bari, modified 11 Years ago.

RE: Web content display for different organization members

Junior Member Posts: 86 Join Date: 3/26/08 Recent Posts
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
Tejas Kanani, modified 11 Years ago.

RE: Web content display for different organization members

Liferay Master Posts: 654 Join Date: 1/6/09 Recent Posts
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.
sangeeth k, modified 11 Years ago.

RE: Web content display for different organization members

Regular Member Posts: 114 Join Date: 4/22/12 Recent Posts
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
Hitoshi Ozawa, modified 11 Years ago.

RE: Web content display for different organization members

Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
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.
sangeeth k, modified 11 Years ago.

RE: Web content display for different organization members

Regular Member Posts: 114 Join Date: 4/22/12 Recent Posts
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
Hitoshi Ozawa, modified 11 Years ago.

RE: Web content display for different organization members

Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
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?
sangeeth k, modified 11 Years ago.

RE: Web content display for different organization members

Regular Member Posts: 114 Join Date: 4/22/12 Recent Posts
Thank you Hitoshi Ozawa for your kind information,