Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Abhi Ed
removing [x] icon from liferay pages for my theme
12 juin 2012 23:48
Réponse

Abhi Ed

Rang: Regular Member

Publications: 118

Date d'inscription: 4 juin 2012

Publications Récentes

I want to remove icon for deleting a page from my theme . Inspecting the page and hovering over that 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?
Apoorva Prakash
RE: removing [x] icon from liferay pages for my theme
13 juin 2012 10:52
Réponse

Apoorva Prakash

Rang: Liferay Master

Publications: 659

Date d'inscription: 15 juin 2010

Publications Récentes

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
Abhi Ed
RE: removing [x] icon from liferay pages for my theme
13 juin 2012 22:41
Réponse

Abhi Ed

Rang: Regular Member

Publications: 118

Date d'inscription: 4 juin 2012

Publications Récentes

Thanks Apporva. Seems it would have worked,but I modified custom.css to get my work done.
Apoorva Prakash
RE: removing [x] icon from liferay pages for my theme
13 juin 2012 23:41
Réponse

Apoorva Prakash

Rang: Liferay Master

Publications: 659

Date d'inscription: 15 juin 2010

Publications Récentes

Hi Abhi,

Modifying custom.css is not the proper solution, however it works.

Thanks,
apoorva Prakash
Neetu Mishra
RE: removing [x] icon from liferay pages for my theme
6 juillet 2012 03:05
Réponse

Neetu Mishra

Rang: Junior Member

Publications: 76

Date d'inscription: 21 mai 2012

Publications Récentes

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.emoticon


Thanks in advance!!
Apoorva Prakash
RE: removing [x] icon from liferay pages for my theme
6 juillet 2012 03:39
Réponse

Apoorva Prakash

Rang: Liferay Master

Publications: 659

Date d'inscription: 15 juin 2010

Publications Récentes

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,
1var 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
RE: removing [x] icon from liferay pages for my theme
6 juillet 2012 04:00
Réponse

Mazhar Alam

Rang: Regular Member

Publications: 201

Date d'inscription: 25 novembre 2011

Publications Récentes

hey thanks..seems helpful..
Apoorva Prakash
RE: removing [x] icon from liferay pages for my theme
6 juillet 2012 04:05
Réponse

Apoorva Prakash

Rang: Liferay Master

Publications: 659

Date d'inscription: 15 juin 2010

Publications Récentes

Welcome emoticon
Bob McDermott
RE: removing [x] icon from liferay pages for my theme
6 mars 2013 18:20
Réponse

Bob McDermott

Rang: Junior Member

Publications: 34

Date d'inscription: 30 avril 2012

Publications Récentes

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

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,
1var 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
Apoorva Prakash
RE: removing [x] icon from liferay pages for my theme
6 mars 2013 23:39
Réponse

Apoorva Prakash

Rang: Liferay Master

Publications: 659

Date d'inscription: 15 juin 2010

Publications Récentes

Bob 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,
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,
1var 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


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