Message Boards

sourcecode 'Portlet Configuration' always generated

thumbnail
Corné ., modified 16 Years ago.

sourcecode 'Portlet Configuration' always generated

Liferay Legend Posts: 1313 Join Date: 10/3/06 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.


<a name="p_113"></a> <div class="portlet-borderless-container" style=""> <div> <div id="lfr-look-and-feel"> <div id="portlet-set-properties"> <ul class="tabs"> <li> <a href="#portlet-config">Portlet Configuration</a> ............. </li></ul></div></div></div></div>


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
thumbnail
Corné ., modified 16 Years ago.

RE: sourcecode 'Portlet Configuration' always generated

Liferay Legend Posts: 1313 Join Date: 10/3/06 Recent Posts
Sorry it wasn't that hard to figure this out;

    #
    # Set this to true to enable the ability to modify portlet CSS at runtime
    # via the Look and Feel icon. Disabling it can speed up performance.
    #
     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 ?
thumbnail
Roman Hoyenko, modified 16 Years ago.

RE: sourcecode 'Portlet Configuration' always generated

Liferay Master Posts: 878 Join Date: 10/8/07 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.
thumbnail
Corné ., modified 16 Years ago.

RE: sourcecode 'Portlet Configuration' always generated

Liferay Legend Posts: 1313 Join Date: 10/3/06 Recent Posts
thanks for your input;

disabeling in a theme is easy
remove this in for example portlet.vm
$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
$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.