Combination View Flat View Tree View
Threads [ Previous | Next ]
Dmitry Lebedev
How to disable "My Account"
December 11, 2009 12:50 AM
Answer

Dmitry Lebedev

Rank: New Member

Posts: 7

Join Date: December 8, 2009

Recent Posts

Hello

We have separate user management solution in our system. We integrate LifeRay to it with LDAP.
However for security reasons we don't want to replicate the user management capability to LifeRay.
Our task is to completely disable all functionality provided by "My Account".
Please advice how to do it in a nice and reliable way.

Thanks
Dmitry
Alaa Hendi
RE: How to disable "My Account"
January 6, 2010 7:36 AM
Answer

Alaa Hendi

Rank: Junior Member

Posts: 34

Join Date: February 10, 2009

Recent Posts

Hello
if you mean te my account from the Doc menu , then you can disable it from the theme , if you are using your own theme , then go to :
<plugins-sdk-x/themes/<you-theme>/docroot/templates/dock.vm
and you can edit this :
 1#
 2if ($is_signed_in)
 3<div class="lfr-dock interactive-mode">
 4    <h2 class="user-greeting">
 5    <span>$user_first_name $user_last_name </span>
 6   
 7    </h2>
 8
 9    <ul class="lfr-dock-list">
10        ## #if ($show_home)
11        ##    <li class="home">
12        ##        <a href="$home_url">$home_text</a>
13        ##    </li>
14        ## #end
15
16        #if ($show_control_panel)
17            <li class="control-panel">
18                <a href="$control_panel_url">$control_panel_text</a>
19            </li>
20        #end
21
22
23        #if ($show_sign_in)
24            <li class="sign-in">
25                <a href="$sign_in_url">$sign_in_text</a>
26            </li>
27        #end
28
29[b]        #if (not $show_my_account)[/b]
30            <li class="my-account">
31                <a href="$my_account_url">$my_account_text</a>
32            </li>
33        #end
34
35        #if ($show_sign_out)
36            <li class="sign-out">
37                <a href="$sign_out_url">$sign_out_text</a>
38            </li>
39        #end
40
41## Maybe useful for online manual - before using this it must be clarified
42
43##        #set( $suffix = ".pdf" )
44##        #set( $url = "http://localhost:8080/portal/HB-$company.getName()$suffix" )
45
46##        #if ($show_my_account)
47##            <li class="Help">
48##                <a href="javascript: void(0);"
49##                    onclick="window.open('$url')">$url</a>
50##            </li>
51##        #end
52       
53        #if ($show_add_content)
54            <li class="add-content">
55                <a href="javascript: void(0);" onclick="$add_content_url">$add_content_text</a>
56            </li>
57            <li class="layout">
58                <a href="javascript: void(0);" onclick="$layout_url">$layout_text</a>
59            </li>
60        #end
61
62        #if ($show_page_settings)
63            <li class="page-settings">
64                <a href="$page_settings_url">$page_settings_text</a>
65            </li>
66        #end
67
68        #if ($show_staging)
69            <li class="staging">
70                <a>$staging_text</a>
71
72                $theme.staging()
73            </li>
74        #end
75
76        ## if ($show_toggle_controls)
77        #if ($show_page_settings) ## Just a workaround because above isn't working correct.
78            <li class="toggle-controls">
79                <a href="$toggle_controls_url">$toggle_controls_text</a>
80            </li>
81        #end         
82         
83         #if ( $show_page_settings )
84            <li class="my-places">
85                <a>$my_places_text</a>
86
87                $theme.myPlaces()
88            </li>
89              #end
90    </ul>
91</div>
92#end



edit this file to fit ur requirement , but this is my idea ;)
never give up , try then try then try and u will success by the end ;)
Shagul Khajamohideen
RE: How to disable "My Account"
January 6, 2010 7:47 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Hi,

You could turn off the portlet "My Account" by setting the below to false in liferay-portlet-ext.xml. This file can be modified in the EXT. If you are not doing any ext development, you could make it as a part of deployment (location: ROOT/WEB-INF)

1
2<portlet>
3        <portlet-name>2</portlet-name>
4        <struts-path>my_account</struts-path>
5        <include>false</include>
6    </portlet>


-Shagul
Dmitry Lebedev
RE: How to disable "My Account"
January 12, 2010 4:07 AM
Answer

Dmitry Lebedev

Rank: New Member

Posts: 7

Join Date: December 8, 2009

Recent Posts

Thanks for your replies. We also found out that instead of disabling My Account completely we could limit its contents with properties:


 1
 2    #
 3    # Input a list of sections that will be included as part of the user form
 4    # when updating a user in the My Account portlet.
 5    #
 6    users.form.my.account.main=details,password,organizations,communities,user-groups,roles,categorization
 7    users.form.my.account.identification=\
 8      addresses,phone-numbers,additional-email-addresses,websites,instant-messenger,social-network,sms,open-id
 9    users.form.my.account.miscellaneous=announcements,display-settings,comments,custom-attributes
Bozhidar Dedov
RE: How to disable "My Account"
February 22, 2012 6:38 AM
Answer

Bozhidar Dedov

Rank: New Member

Posts: 10

Join Date: August 30, 2011

Recent Posts

Check this out. The article gives some tips about how to customize My Account portlet and "undeploy" portlets from the Control Panel.