Fórumok
How to add a portlet in a Dockbar
sunil kumar biswal, módosítva 11 év-val korábban
How to add a portlet in a Dockbar
New Member Bejegyzések: 19 Csatlakozás dátuma: 2012.03.25. Legújabb bejegyzések
Hello,
Good evening my liferay friends.I hav a doubt how to add a portlet in Dockbar.can i do this by making some changed in lifeferay-display.xml configuration file.It gives idea in which category a portlet is added.
<display >
<category name="category.sample">
<portlet id="portlet name"></portlet>
</category>
</display>
Good evening my liferay friends.I hav a doubt how to add a portlet in Dockbar.can i do this by making some changed in lifeferay-display.xml configuration file.It gives idea in which category a portlet is added.
<display >
<category name="category.sample">
<portlet id="portlet name"></portlet>
</category>
</display>
Jignesh Vachhani, módosítva 11 év-val korábban
RE: How to add a portlet in a Dockbar
Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
If you are talking about Add application section ? If yes then you are referring right xml(lifeferay-display.xml ) and settings.
Vitaliy Koshelenko, módosítva 11 év-val korábban
RE: How to add a portlet in a Dockbar
Expert Bejegyzések: 319 Csatlakozás dátuma: 2011.03.25. Legújabb bejegyzések
Hi, Sunil.
Do you need to add portlet to the Control Panel category? You can do it with 'liferay-portlet.xml' file, like this:
(the order of attributes is important here).
Vitaliy
Do you need to add portlet to the Control Panel category? You can do it with 'liferay-portlet.xml' file, like this:
<liferay-portlet-app>
<portlet>
<portlet-name>{YOUR_PORTLET_NAME}</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>portal</control-panel-entry-category>
<control-panel-entry-weight>0</control-panel-entry-weight>
<instanceable>false</instanceable>
<render-weight>1</render-weight>
<ajaxable>false</ajaxable>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
</portlet>
...
</liferay-portlet-app>
(the order of attributes is important here).
Vitaliy
biswajit sarkar, módosítva 11 év-val korábban
RE: How to add a portlet in a Dockbar
Regular Member Bejegyzések: 166 Csatlakozás dátuma: 2011.10.17. Legújabb bejegyzések
yes you are talking about the right file(liferay-display.xml)....
if you and to change the category ,simply change the category name
if you and to change the category ,simply change the category name
Vitaliy Koshelenko, módosítva 11 év-val korábban
RE: How to add a portlet in a Dockbar
Expert Bejegyzések: 319 Csatlakozás dátuma: 2011.03.25. Legújabb bejegyzések
Yes, simply change the <control-panel-entry-category> value. All available portlet categories are stored in PortletCategoryKeys class (""content", "my", "portal" and "server").
If you want to add custom category - add it to this class in this case.
If you want to add custom category - add it to this class in this case.
Tonu Sri, módosítva 11 év-val korábban
RE: How to add a portlet in a Dockbar
Regular Member Bejegyzések: 197 Csatlakozás dátuma: 2011.04.15. Legújabb bejegyzések
Hi Sunil,
See this section in portal.properties:
##
## Dockbar Portlet
##
#
# Set the portlet ids that will be shown directly in the "Add Application"
# menu.
#
dockbar.add.portlets=56,101,110,71
If you want to add your portlet, Add your portlet Id here.
Thanks:
See this section in portal.properties:
##
## Dockbar Portlet
##
#
# Set the portlet ids that will be shown directly in the "Add Application"
# menu.
#
dockbar.add.portlets=56,101,110,71
If you want to add your portlet, Add your portlet Id here.
Thanks:
Florence H, módosítva 10 év-val korábban
RE: How to add a portlet in a Dockbar
Junior Member Bejegyzések: 51 Csatlakozás dátuma: 2009.11.03. Legújabb bejegyzések
Can we add a custom portlet from a hook in the "Add Application" menu with dockbar.add.portlets ?
I tried to do that, but my portlet doesn't appear and there's nothing in the log.
I tried to do that, but my portlet doesn't appear and there's nothing in the log.
Sergei Sorokin, módosítva 9 év-val korábban
RE: How to add a portlet in a Dockbar
New Member Bejegyzés: 1 Csatlakozás dátuma: 2010.09.08. Legújabb bejegyzések
As for Liferay 6.0.6 where is a restriction at the ROOT/html/js/liferay/dockbar.js
It means that only numerical portletIds are supported, but your custom portletIds are named portlertId_WAR_name
So try to fix dockbar.js with hook
if ((/^\d+$/).test(portletId)) {
Liferay.Portlet.add(
{
portletId: portletId
}
);
}
It means that only numerical portletIds are supported, but your custom portletIds are named portlertId_WAR_name
So try to fix dockbar.js with hook
Manikantha Rajamani, módosítva 9 év-val korábban
RE: How to add a portlet in a Dockbar
Expert Bejegyzések: 258 Csatlakozás dátuma: 2014.03.25. Legújabb bejegyzések
Hi
Tonu Sri
Where i can found the portlet id
I searched in portlet tabel in that I found portletId but it is Like follow
Library_WAR_Libraryportlet
where i can found the numberic portlet id
thanks and regards
Manikantha R
Tonu Sri
Where i can found the portlet id
I searched in portlet tabel in that I found portletId but it is Like follow
Library_WAR_Libraryportlet
where i can found the numberic portlet id
thanks and regards
Manikantha R
Lokhande Vishnudas D., módosítva 9 év-val korábban
RE: How to add a portlet in a Dockbar
Regular Member Bejegyzések: 152 Csatlakozás dátuma: 2013.05.27. Legújabb bejegyzések
You can find portlet id in portlet-custom.xml.
It is in webapps->root-->WEB-INF
It is in webapps->root-->WEB-INF
Manikantha Rajamani, módosítva 9 év-val korábban
RE: How to add a portlet in a Dockbar
Expert Bejegyzések: 258 Csatlakozás dátuma: 2014.03.25. Legújabb bejegyzések
Hi
Vishnu
I searched in portlet-custom.xml. file but it contains the id of out of box portlet
but i need the custom portlet id
event I seached in liferay-display.xml file inthat also it contains the out-of box portlet only
but not custom portlet
Regars and Thanks
Manikantha R
Vishnu
I searched in portlet-custom.xml. file but it contains the id of out of box portlet
but i need the custom portlet id
event I seached in liferay-display.xml file inthat also it contains the out-of box portlet only
but not custom portlet
Regars and Thanks
Manikantha R
Manali Lalaji, módosítva 9 év-val korábban
RE: How to add a portlet in a Dockbar
Expert Bejegyzések: 362 Csatlakozás dátuma: 2010.03.09. Legújabb bejegyzésekManikantha Rajamani:
Hi
Vishnu
I searched in portlet-custom.xml. file but it contains the id of out of box portlet
but i need the custom portlet id
event I seached in liferay-display.xml file inthat also it contains the out-of box portlet only
but not custom portlet
Regars and Thanks
Manikantha R
Hi,
You can use portletDisplay to get PortletId :
ThemeDisplay themeDisplay= (ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
PortletDisplay portletDisplay= themeDisplay.getPortletDisplay();
String portletId= portletDisplay.getId();
HTH!