Foren

Using custom Layout template on maximize

thumbnail
Sandeep Nair, geändert vor 13 Jahren.

Using custom Layout template on maximize

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Hi,

I have an issue that whenever i am maximizing a portlet for my theme it brings max.tpl of liferay.

Is it possible that for my theme it doesnot use max.tpl of liferay and use my own

Regards,
Sandeep
thumbnail
zaheer mohammed saddapalli, geändert vor 13 Jahren.

RE: Using custom Layout template on maximize

Regular Member Beiträge: 165 Beitrittsdatum: 15.01.08 Neueste Beiträge
Hi Sandeep,

Sandeep Nair:

Is it possible that for my theme it doesnot use max.tpl of liferay and use my own


you can use ur own max.tpl. For achiving this you need to override liferay-layout-templates.xml file specifying your own template path.


<layout-template id="max">
	<template-path>/layouttpl/standard/max.tpl</template-path>
	<wap-template-path>/layouttpl/standard/max.wap.tpl</wap-template-path>
	<thumbnail-path>/layouttpl/standard/max.png</thumbnail-path>
</layout-template>
thumbnail
Sandeep Nair, geändert vor 13 Jahren.

RE: Using custom Layout template on maximize

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Thanks zaheer
thumbnail
deep shah, geändert vor 7 Jahren.

RE: Using custom Layout template on maximize

New Member Beiträge: 9 Beitrittsdatum: 07.06.16 Neueste Beiträge
there is two kind of layout in liferay 1) custom and 2) standard
so for default layout you need to create standard layout by changing in liferay-layout-templates.xml

<standard>
<layout-template id="max">
   <template-path>/layouttpl/standard/max.tpl</template-path> 
  <wap-template-path>/layouttpl/standard/max.wap.tpl</wap-template-path>
  <thumbnail-path>/layouttpl/standard/max.png</thumbnail-path>
  </layout-template>
</standard>