Skip to content

Instantly share code, notes, and snippets.

@evaldeslacasa
Last active August 29, 2015 14:18
Show Gist options
  • Save evaldeslacasa/3f71adf953e9bb62c211 to your computer and use it in GitHub Desktop.
Save evaldeslacasa/3f71adf953e9bb62c211 to your computer and use it in GitHub Desktop.
My Account button for users to edit their account in a pop up display for Liferay 6.2
## Add this in portal_normal.vm to get a link to My Account
#set ($my_account_url = $theme_display.getURLMyAccount() + "&controlPanelCategory=my")
<a href="javascript:Liferay.Util.openWindow({dialog: {destroyOnHide: true}, title: 'My Account', uri: '$my_account_url'});">
@evaldeslacasa
Copy link
Author

A good choice would be to add the setting of $my_account_url in the init_custom.vm, so that we distinguish if from others as initialized in our own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment