Foros de discusión

Create new portlet like docbar

thumbnail
Puneet Upadhyay, modificado hace 12 años.

Create new portlet like docbar

Regular Member Mensajes: 234 Fecha de incorporación: 22/10/11 Mensajes recientes
Hi All,

Please let me know that how i can create a new portlet like docbar, in liferay 6.0.6.
thumbnail
Olaf Kock, modificado hace 12 años.

RE: Create new portlet like docbar

Liferay Legend Mensajes: 6396 Fecha de incorporación: 23/09/08 Mensajes recientes
Which aspect do you mean? Embed a portlet in a theme, so that it automatically appears on every page? There's documentation for that. The rest, the look&feel/positioning can completely be done through css in the theme.
thumbnail
Puneet Upadhyay, modificado hace 12 años.

RE: Create new portlet like docbar

Regular Member Mensajes: 234 Fecha de incorporación: 22/10/11 Mensajes recientes
Hi Olaf !!!

is docbar portlet, theme dependent ??
My question was, can i make a portlet which will appear same as docbar on every portal page ???
thumbnail
Ravi Kumar Gupta, modificado hace 12 años.

RE: Create new portlet like docbar

Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
If you see portal_normal.vm, there is a velocity macro included to put dockbar in theme.

#if($is_signed_in)
	#dockbar()
#end


If you look further for this macro definition.. its no magic.. just includes a portlet in theme..

#macro(dockbar)
	$theme.runtime("145")
#end

This is the way Liferay adds an static portlet to theme.

So, As Olaf mentioned, create your portlet and add it to theme.. that way.. it will always appear on the page provided the theme is applied.. emoticon

HTH