How to disable portlet sharing - liferay

I want to disable sharing of my portlets in liferay 6.1.0 CE so the "Sharing" button won't be visible.
In my portal-ext.properties i set the following property:
theme.portlet.sharing.default=false
But it don't work. I restarted the server and cleared browser cache.
Is there another way to disable this button?

The configuration property theme.portlet.sharing.default set default value for checkbox "Allow users to add Web Content Display to any website" by sharing-tab.
However, I don't found in source code any possibility to deactivate the sharing about configuration.
But you can create a Hook and override the jsp:
portal-web\docroot\html\portlet\portlet_configuration\tabs1.jsp
Here info how to override jsp: http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/overriding-a-j-4

Related

How to disable intrusive template picker dialog?

Is there any global option to disable the template picker dialog for 2sxc after the application is configured? Now this dialog is popping up every page load in edit mode and interferes with general website editing.
I'm not sure what your question is - maybe add some context or screenshot.
My guess is you added a module to the page and didn't configure it yet - so the picker automatically appears. Just pick something - or delete the module, and you should be good to go.

LIFERAY --- Why Can't I Add Configuration Option To My Portlet?

I have an admin-only portlet (you can't add it to a site). I can add the edit portlet mode with no problem and it appears under the gearbox Options menu as Preferences. However, I cannot add the Configure option, even though I do it exactly as shown in Liferay 6.2 User Guide. It does not appear under the gearbox Options menu as it should (as 'Configuration').
I did:
correctly add the default configuration action class in
liferay-portlet.xml
specify .jsp file in portlet.xml
add config portlet mode in portlet.xml
add config-template init param
In both liferay-portlet.xml and portlet.xml I also specify another <portlet>, which can be added on a site (and does not appear under admin content) for which Configuration appears with no problem. Even if I copy its configuration options to the first (the admin one), configuration option for it still doesn't appear.
So what should I do to make Configuration option for my portlet to appear?

liferay move portlets in a page

I have the next requirement: every user can change position of portlet in a page but this change is only applied for this user no for all. I know that it is possible with layout and it works fine (the portlets are possible move ), but my main problem is when "x" user changes the position of a portlet because it is applied for all users. so you have any idea for how do I this?
I work with liferay 6.2 CE
From liferay 6.1 onwards,it provides for page customizations,where in admin can defined certain sections of the page layout as customizable allowing users to add/move/delete portlets,in specific sections.These changes will be specific to the particular user and will not be visible for others.The user has the option to anytime view the default page or to reset his customizations as well.
In order to enable this,Edit page->customization settings->Show Customizable settings and check the required sections.
Please refer the Liferay documentation for further details.

How to add preference option to the liferay portlet

I want to create a portlet where the portlet allow access to the remote application. That is the content of the portlet should be dynamic so for the same reason I want to add one option "Preferences" in the portlet (Where the look and feel and configuration options exists). In that preference page If will give some http url (http://localhost:8080/Myapp/Mypage) then on click of save button, the URL page should display in the portlet. How can I do that? Note I am going to use same portlet in different pages with different URLs.
Liferay's "Preferences" link shows the portlet in JSR-286 "edit" mode. That's all there is: If you implement this mode, you'll automatically get the Preferences link.
Why are they named differently? IMHO Edit-Mode is rather misleading as you're editing the preferences rather than any data displayed in the portlet.
You can use Liferay Iframe Portlet which allow access to the remote application.
Refer following url for detail description of look and feel and configuration options : Iframe Portlet

Sharepoint 2010 adding custom visual webpart in master page with editable properties

I can easily add webparts to my custom master page, but they appear static (in page edit mode)...Is there a way i can add custom webparts in master page with user editing its properties (through property bag)
Have you tried adding the WebBrowsable attribute to your WebPart? See http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webbrowsableattribute.aspx
[Personalizable(), WebBrowsable(), WebDisplayName("My WebPart"), WebDescription("This is my editable WebPart")]
Sadly In master page, visual web-part is not editable as they dont exist in web part zone, so now we use user control as delegate control.

Resources