Foros de discusión
Create new portlet like docbar
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.
Please let me know that how i can create a new portlet like docbar, in liferay 6.0.6.
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.
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 ???
is docbar portlet, theme dependent ??
My question was, can i make a portlet which will appear same as docbar on every portal page ???
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 you look further for this macro definition.. its no magic.. just includes a portlet in theme..
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..
HTH
#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..
HTH