Fórumok
removing [x] icon from liferay pages for my theme
Abhi Ed, módosítva 11 év-val korábban
removing [x] icon from liferay pages for my theme
Regular Member Bejegyzések: 118 Csatlakozás dátuma: 2012.06.04. Legújabb bejegyzések
I want to remove [x] icon for deleting a page from my theme . Inspecting the page and hovering over that [x] icon in firebug shows following html structure :
<span id="aui_3_2_0_11794" class="delete-tab aui-helper-hidden">X</span>
Can anyone tell ,in which file this is declared?
<span id="aui_3_2_0_11794" class="delete-tab aui-helper-hidden">X</span>
Can anyone tell ,in which file this is declared?
Apoorva Prakash, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Liferay Master Bejegyzések: 658 Csatlakozás dátuma: 2010.06.15. Legújabb bejegyzések
Hi Abhi,
You have to add the portlet.vm file in the _diff folder of your theme and then make the necessary changes...
See this link, it may help...
Hope this will help...
Thanks and Regards,
Apoorva Prakash
You have to add the portlet.vm file in the _diff folder of your theme and then make the necessary changes...
See this link, it may help...
Hope this will help...
Thanks and Regards,
Apoorva Prakash
Abhi Ed, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Regular Member Bejegyzések: 118 Csatlakozás dátuma: 2012.06.04. Legújabb bejegyzések
Thanks Apporva. Seems it would have worked,but I modified custom.css to get my work done.
Apoorva Prakash, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Liferay Master Bejegyzések: 658 Csatlakozás dátuma: 2010.06.15. Legújabb bejegyzések
Hi Abhi,
Modifying custom.css is not the proper solution, however it works.
Thanks,
apoorva Prakash
Modifying custom.css is not the proper solution, however it works.
Thanks,
apoorva Prakash
Neetu Mishra, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzések
Hi Apoorva,
I also want to implement the same thing but the solution that you have provided is I think to remove 'X' button on the portlet not for removing 'X' icon present on the tab in the navigation bar.
I have checked out the navigation.vm file also but it seems that it's not coming from here.
Thanks in advance!!
I also want to implement the same thing but the solution that you have provided is I think to remove 'X' button on the portlet not for removing 'X' icon present on the tab in the navigation bar.
I have checked out the navigation.vm file also but it seems that it's not coming from here.
Thanks in advance!!
Apoorva Prakash, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Liferay Master Bejegyzések: 658 Csatlakozás dátuma: 2010.06.15. Legújabb bejegyzések
Hi Neetu,
You need to add the following file in hook
In this file, you'll see the following online no 6,
However I don't know your requirements, but this will make you unable to delete pages from nav bar.
Hope this will help.
Thanks and Regards,
Apoorva Prakash
You need to add the following file in hook
\html\js\liferay\navigation.js
In this file, you'll see the following online no 6,
var TPL_DELETE_BUTTON = '<span class="delete-tab aui-helper-hidden">X</span>';
just make this var blank...However I don't know your requirements, but this will make you unable to delete pages from nav bar.
Hope this will help.
Thanks and Regards,
Apoorva Prakash
Mazhar Alam, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
hey thanks..seems helpful..
Apoorva Prakash, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Liferay Master Bejegyzések: 658 Csatlakozás dátuma: 2010.06.15. Legújabb bejegyzések
Welcome
Bob McDermott, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Junior Member Bejegyzések: 34 Csatlakozás dátuma: 2012.05.01. Legújabb bejegyzések
Apoorva,
When you say "add the following file in hook", do you mean in the _diffs folder of the theme? Can this be done in a theme or do you need to do a hook?
Thanks,
Bob
When you say "add the following file in hook", do you mean in the _diffs folder of the theme? Can this be done in a theme or do you need to do a hook?
Thanks,
Bob
Apoorva Prakash:
Hi Neetu,
You need to add the following file in hook\html\js\liferay\navigation.js
In this file, you'll see the following online no 6,just make this var blank...var TPL_DELETE_BUTTON = '<span class="delete-tab aui-helper-hidden">X</span>';
However I don't know your requirements, but this will make you unable to delete pages from nav bar.
Hope this will help.
Thanks and Regards,
Apoorva Prakash
Apoorva Prakash, módosítva 11 év-val korábban
RE: removing [x] icon from liferay pages for my theme
Liferay Master Bejegyzések: 658 Csatlakozás dátuma: 2010.06.15. Legújabb bejegyzésekBob McDermott:
Apoorva,
When you say "add the following file in hook", do you mean in the _diffs folder of the theme? Can this be done in a theme or do you need to do a hook?
Thanks,
BobApoorva Prakash:Hi Neetu,
You need to add the following file in hook\html\js\liferay\navigation.js
In this file, you'll see the following online no 6,just make this var blank...var TPL_DELETE_BUTTON = '<span class="delete-tab aui-helper-hidden">X</span>';
However I don't know your requirements, but this will make you unable to delete pages from nav bar.
Hope this will help.
Thanks and Regards,
Apoorva Prakash
Hi Bob,
No, not in theme... In Hook, because navigation.js is not a part of theme, but of HTML.
Hope this will help.
Thanks and Regards,
Apoorva Prakash