留言板

Restricted account area (as in Liferay's own website)

J G,修改在7 年前。

Restricted account area (as in Liferay's own website)

Junior Member 帖子: 53 加入日期: 16-1-21 最近的帖子
Hi,

I would like to a have a restricted account area, similar to the "Account" Home at the Liferay website.
Users should be able to:
- change their admin details (e.g. username/password/email
- their download history

Is there anything I can reuse or should I build it myself?
In the latter case, are there any directions?

thanks,

JG
thumbnail
David H Nebinger,修改在7 年前。

RE: Restricted account area (as in Liferay's own website)

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
What version of Liferay?

In Liferay 7, for example, it is easy to add new panels so you would just need to implement the way to track download history. Then create the panel and register it. If you need to alter the other panels, that's just a component override and/or a JSP fragment bundle. To remove panels, you can check my blog post on how to do it.
J G,修改在7 年前。

RE: Restricted account area (as in Liferay's own website)

Junior Member 帖子: 53 加入日期: 16-1-21 最近的帖子
Thanks for your response.
I use Liferay 7 GA3.

What I want to achieve is something similar to the Account Home in the Liferay website.
I do not want the standard user account panel, but instead full control of
- the data elements a user can see and edit
- how this is visualized.

Additionally, I need to add a few custom fields.

Are there any examples I can look at, or some directions you can give?

Best,

Jaap
thumbnail
David H Nebinger,修改在7 年前。

RE: Restricted account area (as in Liferay's own website)

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
My blog shows how you can create a custom form navigator for "my account": https://web.liferay.com/web/user.26526/blog/-/blogs/removing-panels-from-my-account.

With the separate navigator you can add your own panels (instead of the Liferay defaults) and make them look however you want.
J G,修改在7 年前。

RE: Restricted account area (as in Liferay's own website)

Junior Member 帖子: 53 加入日期: 16-1-21 最近的帖子
Thank you.

But can I then also enforce that this is the only way for users to see their account details?
More precisely, I do not want to offer the user the standard left-screen panel at all.

-- Jaap
thumbnail
David H Nebinger,修改在7 年前。

RE: Restricted account area (as in Liferay's own website)

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
Yes because you're replacing Liferay's form navigator default ID with your own. The JSP fragment bundle override ensures that the original panels will not be displayed.
J G,修改在7 年前。

RE: Restricted account area (as in Liferay's own website)

Junior Member 帖子: 53 加入日期: 16-1-21 最近的帖子
I assume that the My Account Portlet in Liferay 7 is the "My Account" at the left of the default Liferay 7 theme.
What I want to achieve is the following:
- removal of a number of entries (e.g. address) for the end-user (this works with your own code)
- addition of some entries as defined by myself
- a new visualization (I want to get rid of the left standard liferay meny alltogether for all normal users).

For the last point, is the way here to develop new jsp fragments?