Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Abhi Ed
removing [x] icon from liferay pages for my theme
June 12, 2012 11:48 PM
Answer

Abhi Ed

Rank: Regular Member

Posts: 115

Join Date: June 4, 2012

Recent Posts

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
June 13, 2012 10:52 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 658

Join Date: June 15, 2010

Recent Posts

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
June 13, 2012 10:41 PM
Answer

Abhi Ed

Rank: Regular Member

Posts: 115

Join Date: June 4, 2012

Recent Posts

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
June 13, 2012 11:41 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 658

Join Date: June 15, 2010

Recent Posts

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
July 6, 2012 3:05 AM
Answer

Neetu Mishra

Rank: Junior Member

Posts: 67

Join Date: May 21, 2012

Recent Posts

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
July 6, 2012 3:39 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 658

Join Date: June 15, 2010

Recent Posts

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
July 6, 2012 4:00 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 188

Join Date: November 25, 2011

Recent Posts

hey thanks..seems helpful..
Apoorva Prakash
RE: removing [x] icon from liferay pages for my theme
July 6, 2012 4:05 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 658

Join Date: June 15, 2010

Recent Posts

Welcome emoticon
Bob McDermott
RE: removing [x] icon from liferay pages for my theme
March 6, 2013 6:20 PM
Answer

Bob McDermott

Rank: Junior Member

Posts: 34

Join Date: April 30, 2012

Recent Posts

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
March 6, 2013 11:39 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 658

Join Date: June 15, 2010

Recent Posts

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