<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Hook for portal properties not working as expected</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=22743424" />
  <subtitle>Hook for portal properties not working as expected</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=22743424</id>
  <updated>2026-05-28T19:16:24Z</updated>
  <dc:date>2026-05-28T19:16:24Z</dc:date>
  <entry>
    <title>RE: Hook for portal properties not working as expected</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22776199" />
    <author>
      <name>Etien Rožnik</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22776199</id>
    <updated>2013-03-19T08:00:34Z</updated>
    <published>2013-03-19T08:00:34Z</published>
    <summary type="html">Thanks for the answers!&lt;br /&gt;&lt;br /&gt;Im using the &amp;#34;My account&amp;#34; tab in the liferay Control Panel..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So i&amp;#39;m supposed to edit the portal-ext.properties to remove some fields?&lt;br /&gt;&lt;br /&gt;p.s. im using the latest version of LR portal (6.1 CE GA2)&lt;br /&gt;&lt;br /&gt;Thank!</summary>
    <dc:creator>Etien Rožnik</dc:creator>
    <dc:date>2013-03-19T08:00:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Hook for portal properties not working as expected</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22756374" />
    <author>
      <name>Mika Koivisto</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22756374</id>
    <updated>2013-03-18T17:52:01Z</updated>
    <published>2013-03-18T17:52:01Z</published>
    <summary type="html">With hook you can&amp;#39;t delete existing values you can only add new ones. If you need to remove some elements just use portal-ext.properties for that.&lt;br /&gt;&lt;br /&gt;For some properties the hook used to replace the values on some Liferay version but that was a bug.</summary>
    <dc:creator>Mika Koivisto</dc:creator>
    <dc:date>2013-03-18T17:52:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Hook for portal properties not working as expected</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22749054" />
    <author>
      <name>Dave Weitzel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22749054</id>
    <updated>2013-03-18T15:05:34Z</updated>
    <published>2013-03-18T15:05:34Z</published>
    <summary type="html">It is perfectly OK to override portal.properties using a hook - in fact for user profile type changes this is the recommended route in training and other documentation.&lt;br /&gt;are you sure you are accessing the My Account portlet and not the user update one?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;users.form.&lt;em&gt;update&lt;/em&gt;.miscellaneous&lt;/strong&gt; is the property that admin on the control panel will take note of you need to set both.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure if this behavior is a result of the bug in GA2 to do with the loading sequence of portal.properties, See http://issues.liferay.com/browse/LPS-29904 &lt;br /&gt;That certainly effects the portal-ext.properties but not sure how hooks and other plugins are changed.</summary>
    <dc:creator>Dave Weitzel</dc:creator>
    <dc:date>2013-03-18T15:05:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Hook for portal properties not working as expected</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22743802" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22743802</id>
    <updated>2013-03-18T12:42:59Z</updated>
    <published>2013-03-18T12:42:59Z</published>
    <summary type="html">You&amp;#39;re not suppose to &amp;#34;hook&amp;#34; portal.properties because they only hold &amp;#34;default&amp;#34; values. You&amp;#39;ll suppose to create a portal-ext.properties file.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2013-03-18T12:42:59Z</dc:date>
  </entry>
  <entry>
    <title>Hook for portal properties not working as expected</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22743423" />
    <author>
      <name>Etien Rožnik</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22743423</id>
    <updated>2013-03-18T12:22:15Z</updated>
    <published>2013-03-18T12:22:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;im trying to make a hook for overriding a property in the properties of liferay(the property for the menu in the My Account portlet)&lt;br&gt;&lt;br&gt;I've made the hook trought the Eclipse IDE, and added the property to change to the portal.properties like this: &lt;br&gt;&lt;pre&gt;&lt;code&gt;users.form.my.account.miscellaneous=announcements,display-settings,comments&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;The properties file is in the WEB-INF/src folder.&lt;br&gt;&lt;br&gt;The liferay-hook.xml is in the WEB-INF folder:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;!--?xml version="1.0"?--&amp;gt;


&amp;lt;hook&amp;gt;
	&amp;lt;portal-properties&amp;gt;portal.properties&amp;lt;/portal-properties&amp;gt;
&amp;lt;/hook&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;The problem is that, the hook does not remove the menu item that i'm trying to remove.. if i change the property in the portal-ext.properties it works just fine, if i set the property to nothing in the ext properties, the hook works fine, if i just add a menu item in the property, the hook works fine, it just does not want to remove the default item.&lt;br&gt;&lt;br&gt;Thanks for the help!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Etien Rožnik</dc:creator>
    <dc:date>2013-03-18T12:22:15Z</dc:date>
  </entry>
</feed>
