Foren
Remove search form from Blog portlet
Joseph Wolfe, geändert vor 12 Jahren.
Remove search form from Blog portlet
Regular Member Beiträge: 103 Beitrittsdatum: 22.02.11 Neueste Beiträge
As the title of the thread states....I am in need to remove the search form from the Blogs portlet. How would this be accomplished.
Much obliged.
Much obliged.
Nagendra Kumar Busam, geändert vor 12 Jahren.
RE: Remove search form from Blog portlet
Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
I didn't try this BUT it might help you.
By default blogs protlet will try to render view.jsp which inturn calls view_entries.jspf.
In view_entries.jspf you will have if condition like below
You change it to
It should work for the functionality you are looking for. You can do this change through hooks
HTH
- Nagendra Kumar
By default blogs protlet will try to render view.jsp which inturn calls view_entries.jspf.
In view_entries.jspf you will have if condition like below
showSearch = showSearch && !results.isEmpty();
You change it to
showSearch = false;
It should work for the functionality you are looking for. You can do this change through hooks
HTH
- Nagendra Kumar
jelmer kuperus, geändert vor 12 Jahren.
RE: Remove search form from Blog portlet
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
The easiest would be to create a hook for /html/portlet/blogs/init-ext.jsp and add a single line
That would make it easier to later upgrade to a new liferay version than when you would hook view.jsp
<% showSearch = false; %>
That would make it easier to later upgrade to a new liferay version than when you would hook view.jsp
Nagendra Kumar Busam, geändert vor 12 Jahren.
RE: Remove search form from Blog portlet
Liferay Master Beiträge: 678 Beitrittsdatum: 07.07.09 Neueste Beiträge
Thank you Jelmer, it's the simple one & appropriate answer. Overlooked didn't saw init-ext.jsp file
Joseph Wolfe, geändert vor 12 Jahren.
RE: Remove search form from Blog portlet
Regular Member Beiträge: 103 Beitrittsdatum: 22.02.11 Neueste Beiträge
Ah yes... an easy one that I missed.........
thanks
thanks
Joseph Wolfe, geändert vor 12 Jahren.
RE: Remove search form from Blog portlet
Regular Member Beiträge: 103 Beitrittsdatum: 22.02.11 Neueste Beiträge
Taking this a step further, how would we remove the capability to add the blog to the Blinklist, Furl, Newsvine ..etc......I need to have all of the removed. Anyone successfully done that via a hook or mod to the jsp?