Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Corné Aussems
sourcecode 'Portlet Configuration' always generated
November 7, 2007 6:17 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

I want to slim down the outputted source and I found LR(4.3.3) always generating the "Look & Feel" functionality of a portlet even when there is no authorization to use this functionality.

 1
 2<div id="p_p_id_113_" class="portlet-boundary portlet-boundary_113_" >
 3<a name="p_113"></a>
 4<div class="portlet-borderless-container" style="">
 5<div>
 6<div id="lfr-look-and-feel">
 7<div id="portlet-set-properties">
 8<ul class="tabs">
 9<li>
10<a href="#portlet-config">Portlet Configuration</a>
11.............


its a unnecessary +54000 bytes load

Is there somehow a property that can be set to suppress this behaviour?

Thx for the good work on 4.3 guys
Corné Aussems
RE: sourcecode 'Portlet Configuration' always generated
November 7, 2007 7:06 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

Sorry it wasn't that hard to figure this out;

1    #
2    # Set this to true to enable the ability to modify portlet CSS at runtime
3    # via the Look and Feel icon. Disabling it can speed up performance.
4    #
5     portlet.css.enabled=true


But when I disable this property in what way am I able to change the Look an Feel per portlet ?

The general Idea is developing with enabled and than disabeling it in production ?
Roman Hoyenko
RE: sourcecode 'Portlet Configuration' always generated
November 7, 2007 7:11 AM
Answer

Roman Hoyenko

Community Moderator

Rank: Liferay Master

Posts: 868

Join Date: October 8, 2007

Recent Posts

Well, this is generated in the theme. You can probably write your own theme which will check if there are any portlets on the page and not generate the markup that is not needed. I don't think you would save much though, you would still need the navigation and other things.
Corné Aussems
RE: sourcecode 'Portlet Configuration' always generated
November 7, 2007 7:52 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

thanks for your input;

disabeling in a theme is easy
remove this in for example portlet.vm
1$theme.iconPortletCss()


But not generating "look and Feel" code has to be done in the liferay sourcecode

I have no handle inside theme where it all happens
1$theme.include($content_include)


The strange thing is I can't find it easily in LR code.

And at the end I prefer not changing the portal code.