08.08.2017 Views

designer

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating Server Ribbon Custom Actions 93<br />

Creating Server Ribbon Custom Actions<br />

In the previous section, you used the New button in the Custom Actions workspace area<br />

to create a list menu item custom action. To create server ribbon custom actions on<br />

views and forms you must use the Custom Action command on the ribbon in the New<br />

group. When you create a server ribbon custom action for a view, that custom action appears<br />

on the ribbon for all view pages you create.<br />

When you add server ribbon custom actions to list views and forms, you can optionally<br />

provide two images: 16×16 and 32×32 pixels. The smaller image is used when the browser<br />

size is reduced and the amount of space for the custom action is limited.<br />

In this exercise, you create a server ribbon custom action for a list form.<br />

SET UP Using SharePoint Designer, display the list settings page for the<br />

Announcements list you used in the previous exercise, if it is not already open.<br />

Custom Action<br />

1. On the Custom Actions tab, click Custom Action in the New group, and then<br />

click Display Form Ribbon.<br />

2. In the Name box type Add Announcement. In the Navigate to form list, select<br />

the NewForm.aspx page for the list.<br />

3. In the Button Image URL (16x16) box, click Browse, and then select the image<br />

you want to use, such as b_NewAnn16x16. Click OK. In the Button Image<br />

URL (32x32) box, click Browse and select the image you want to use, such as<br />

b_NewAnn32x32. Click OK.<br />

4. Click OK.<br />

The Create Custom Action dialog box closes. In the Custom Actions area, the<br />

Add Announcement, Display Form Ribbon action, with a sequence number of 0,<br />

appears.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!