Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Prashanth Thavutam
Site Pages customization
February 21, 2013 1:40 PM
Answer

Prashanth Thavutam

Rank: New Member

Posts: 7

Join Date: November 13, 2012

Recent Posts

We are trying to make few changes to Site Pages JSP's and need to add a new button and remove two buttons from the list of existing button-row in html/portlet/layouts-admin/edit_layout.jsp
Here is the button-row that seems to display Add Child Page, Permissions, Delete, etc.. :
<aui:button-row cssClass="edit-toolbar" id='<%= liferayPortletResponse.getNamespace() + "layoutToolbar" %>' />

How can I add/remove buttons from this row? Thanks for any help.

Regards,
Prashanth
Samuel Kong
RE: Site Pages customization
February 21, 2013 9:10 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Master

Posts: 940

Join Date: March 10, 2008

Recent Posts

You should use a Hook to customize the JSP. Search for "layoutToolbarChildren" in the <aui:script> section near the bottom of the page.
Prashanth Thavutam
RE: Site Pages customization
February 22, 2013 8:24 AM
Answer

Prashanth Thavutam

Rank: New Member

Posts: 7

Join Date: November 13, 2012

Recent Posts

Thank you Samuel, that helped. Yes, we have created a hook for the changes. Thanks!

Regards,
Prashanth