Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Philippe GABERT
[RESOLVED] Corporate page + Personal page?
June 27, 2010 11:56 PM
Answer

Philippe GABERT

Rank: New Member

Posts: 17

Join Date: May 13, 2010

Recent Posts

Hello all,


I have a question about Liferay "configuration". (I have Liferay 5.2.3)

I would like to know whether it is possible to do that, and if so, how.

- I would like to have the main page (the first page the users see when they arrive), with Corporate info. (Latest news, etc.)

- Next to that page (which users can't edit), I would like to create a basic page (a page that I'll pre-build) for them, that they could edit. That would be their own page, and they can add and organize portlets.
A user will have access only to his own page.

Such a situation is possible?
If yes, how can I do that?

Thanks !

Philippe
Lisa Simpson
RE: Corporate page + Personal page?
June 10, 2010 6:33 AM
Answer

Lisa Simpson

Rank: Liferay Legend

Posts: 2034

Join Date: March 5, 2009

Recent Posts

Allow the creation of User pages but set the default page to be the corporate page on log in.
Philippe GABERT
RE: Corporate page + Personal page?
June 15, 2010 2:05 AM
Answer

Philippe GABERT

Rank: New Member

Posts: 17

Join Date: May 13, 2010

Recent Posts

Thanks for your answer.
That's actually what I've done, but I don't know how to "pre-build" the page for the users.

And I have problems to set the template. The template I use for the corporate page is not set for the user pages... I set the default template to use, but I get this error:

No theme found for default theme id wintersky. Returning a random theme.

Euh... ok, but... I have a theme with this id.
(I saw in the file liferay-look-and-feel.xml that line:
<theme id="wintersky" name="Winter Sky">

So... It should be ok, but it's not.

any idea?

thanks !
Dennis Greiffenberg
RE: Corporate page + Personal page?
June 16, 2010 12:42 AM
Answer

Dennis Greiffenberg

Rank: Regular Member

Posts: 222

Join Date: April 30, 2007

Recent Posts

Hi Philippe,

Philippe GABERT:

That's actually what I've done, but I don't know how to "pre-build" the page for the users.

I have set up the entire pages using a sample user and exporting the content of that sample user to a "Liferay Archive" (aka LAR-File). This file is then configured in the portal-ext.properties as template using the following syntax:

1
2#
3# Specify a LAR file that can be used to create the user private layouts. If
4# this property is set, the previous layout properties will be ignored.
5#
6default.user.private.layouts.lar=${liferay.home}/deploy/default_user_private.lar

Private user pages have to be enabled to use these settings.

Philippe GABERT:

And I have problems to set the template.

You probably mean you're having difficulties configuring the default theme (instead of defalt template), right? At least that's what I presume following the end of your thread.
For me the following line (again in portal-ext.properties) did the trick:
1
2#
3# Set the regular theme id for the private layout.
4#
5default.user.private.layout.regular.theme.id=wintersky_WAR_wintersky-theme


In addition to that I'm facing another problem, as I basically want to achieve the same thing as you: A startpage per user that is pre-defined by the portal owner, which the user is allowed to configure as he likes. A bunch of other pages that are not editable by "normal" users.

What I've figured out so far: You can build the startpage as described above as well as additional pages, that all "link" to another community.

Example:
Page 1 -> http://localhost/user/sample-user/home
Page 2 -> http://localhost/group/acme/page1
Page 3 -> http://localhost/group/acme/page2

The drawback of this is, whenever a user klicks on "Page 2" or "Page 3" he / she changes the scope (i.e. the community) and his / her startpage disappears from the toplevel navigation, so that probably needs to be hardcoded in the navigation.vm, but I don't know how to replace that with the appropriate user-variable, so that's it is always valid for any given user, see my prob?

I'm sure this is easy to fix for those of you who have put your noses in the code already, so any hint is greatly appreciated emoticon

cheers,
Dennis
Philippe GABERT
RE: Corporate page + Personal page?
June 23, 2010 5:55 AM
Answer

Philippe GABERT

Rank: New Member

Posts: 17

Join Date: May 13, 2010

Recent Posts

Dennis,

thank you for your answer. Unfortunately, the .lar file didn't work. :-(

About your question: That's what I've done to add a link to the user personnal page:

1<a href="$user.getGroup().getPathFriendlyURL(true,$themeDisplay)$user.getGroup().getFriendlyURL()">
2                <span>My page</span>
3                </a>


I don't know if it could be improved, but at least, it links to the user personnal page.
Philippe GABERT
RE: Corporate page + Personal page?
June 25, 2010 12:08 AM
Answer

Philippe GABERT

Rank: New Member

Posts: 17

Join Date: May 13, 2010

Recent Posts

Ouchhhhhhh,

I am sorry... It worked ! (I mean, the lar file)...
But just for new users...

So it has to be done before new users register.

Thanks !
Dennis Greiffenberg
RE: Corporate page + Personal page?
June 25, 2010 12:11 AM
Answer

Dennis Greiffenberg

Rank: Regular Member

Posts: 222

Join Date: April 30, 2007

Recent Posts

Hi Philippe,

yes, I forgot to say that this is only applicable for new users (unfortunately).
I'm glad it's working now :-)

/Dennis.
Bijan Vakili
RE: Corporate page + Personal page?
June 25, 2010 6:10 AM
Answer

Bijan Vakili

LIFERAY STAFF

Rank: Junior Member

Posts: 38

Join Date: April 5, 2010

Recent Posts

Philippe GABERT:
Ouchhhhhhh,

I am sorry... It worked ! (I mean, the lar file)...
But just for new users...

So it has to be done before new users register.

Thanks !


Philippe,

Will you please prepend " " to Subject of the thread per forum etiquette?

Thanks.