c# create 2d barcode EVOLVING THE DEFAULT USER EXPERIENCE in Font

Printer Data Matrix 2d barcode in Font EVOLVING THE DEFAULT USER EXPERIENCE

CHAPTER 5 EVOLVING THE DEFAULT USER EXPERIENCE
ECC200 Generator In None
Using Barcode drawer for Font Control to generate, create Data Matrix image in Font applications.
www.OnBarcode.com
Code 128C Encoder In None
Using Barcode generation for Font Control to generate, create Code 128 image in Font applications.
www.OnBarcode.com
However, using a CustomAction is not just limited to menus. The entire Site Settings page uses the CustomAction framework for creating the columns and links to manage a site. The Operations and Application Management pages in Central Administration use custom actions. And, as you have seen, the toolbars located in various places such as in lists use custom actions. In fact, let s take a look at how the Site Settings page is created and see whether you can add some categories and links. That can be very useful for providing your own management options to site administrators and power users. The Site Settings page gets its content from the SiteSettings.xml file. Open the [12]\ TEMPLATE\FEATURES\SiteSettings\SiteSettings.xml file, as shown in Figure 5-10.
Create QR Code JIS X 0510 In None
Using Barcode encoder for Font Control to generate, create QR image in Font applications.
www.OnBarcode.com
Encode Data Matrix ECC200 In None
Using Barcode creator for Font Control to generate, create Data Matrix 2d barcode image in Font applications.
www.OnBarcode.com
Figure 5-10. SiteSettings.xml Ah, this looks quite familiar. There is one new element here, CustomActionGroup. However, when you realize that the CustomActionGroup maps nicely to the GroupId attribute of both FeatureMenuTemplate and CustomAction, I am fairly certain that you can easily understand this new element. In fact, several CustomActionGroup elements match the columns on the Site Settings page. Let s try adding custom actions to the Site Settings page by using CustomAction and CustomActionGroup. Here is what you could do in the elements file of your feature: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomActionGroup Id="MyCustomSettings" Location="Microsoft.SharePoint.SiteSettings" Description="Custom administration options" Sequence="5" Title="Custom administration"/>
PDF-417 2d Barcode Drawer In None
Using Barcode creation for Font Control to generate, create PDF 417 image in Font applications.
www.OnBarcode.com
Encoding Barcode In None
Using Barcode drawer for Font Control to generate, create Barcode image in Font applications.
www.OnBarcode.com
CHAPTER 5 EVOLVING THE DEFAULT USER EXPERIENCE
GS1 128 Drawer In None
Using Barcode creation for Font Control to generate, create UCC - 12 image in Font applications.
www.OnBarcode.com
MSI Plessey Generator In None
Using Barcode drawer for Font Control to generate, create MSI Plessey image in Font applications.
www.OnBarcode.com
<CustomAction Id="MyCustomSiteAction" GroupId="MyCustomSettings" Location="Microsoft.SharePoint.SiteSettings" Rights="EnumeratePermissions,BrowseUserInfo" Title="Manage something..." > <UrlAction Url="_layouts/CustomManagement.aspx"/> </CustomAction> </Elements> Figure 5-11 shows the result of this little exercise.
Data Matrix ECC200 Generator In Java
Using Barcode creation for Java Control to generate, create Data Matrix image in Java applications.
www.OnBarcode.com
DataMatrix Generation In None
Using Barcode creation for Software Control to generate, create DataMatrix image in Software applications.
www.OnBarcode.com
Figure 5-11. The fruits of your labor Now you should begin to understand how to add menu items to virtually any menu in SharePoint. All you need are the Location and GroupId attributes, and you are good to go.
Encode GS1 DataBar-14 In Visual Studio .NET
Using Barcode creation for Visual Studio .NET Control to generate, create GS1 DataBar Stacked image in Visual Studio .NET applications.
www.OnBarcode.com
Print PDF-417 2d Barcode In None
Using Barcode creator for Office Excel Control to generate, create PDF417 image in Excel applications.
www.OnBarcode.com
Do you want to find all the possible Location and GroupId values That is quite difficult. Microsoft Tip
Create EAN128 In Objective-C
Using Barcode drawer for iPad Control to generate, create UCC-128 image in iPad applications.
www.OnBarcode.com
Printing PDF417 In None
Using Barcode generator for Word Control to generate, create PDF 417 image in Office Word applications.
www.OnBarcode.com
does provide a large list in the documentation if you search for default custom action locations and IDs. That list is not exhaustive, though, so you may want to dig a bit to find the proper Location and GroupId values if you are missing a position. PersonalActions is an example of a Location and GroupId value that is not listed. Since you can create your own Location and GroupId values as well, no list can ever be exhaustive. A shovel and the will to dig are your best tools.
EAN-13 Generation In Visual Studio .NET
Using Barcode creator for Visual Studio .NET Control to generate, create EAN-13 Supplement 5 image in .NET applications.
www.OnBarcode.com
Barcode Drawer In None
Using Barcode creation for Microsoft Word Control to generate, create Barcode image in Office Word applications.
www.OnBarcode.com
CHAPTER 5 EVOLVING THE DEFAULT USER EXPERIENCE
Reading Code 128A In VB.NET
Using Barcode recognizer for .NET framework Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
Barcode Generator In VS .NET
Using Barcode creation for ASP.NET Control to generate, create Barcode image in ASP.NET applications.
www.OnBarcode.com
A final and important element is HideCustomAction. As the name implies, this element can remove existing CustomAction elements. The following code removes the People and groups link from the Users and Permissions category on the Site Settings page (and Figure 5-12 shows the result): <HideCustomAction HideActionId="PeopleAndGroups" GroupId="UsersAndPermissions" Location="Microsoft.SharePoint.SiteSettings"/>
Encoding Barcode In .NET Framework
Using Barcode creator for Reporting Service Control to generate, create Barcode image in Reporting Service applications.
www.OnBarcode.com
Code128 Reader In Java
Using Barcode recognizer for Java Control to read, scan read, scan image in Java applications.
www.OnBarcode.com
Figure 5-12. HideCustomAction snatches away People and groups So if you want to replace any management links on the Site Settings page, just use RemoveCustomAction first, and then use CustomAction to provide your custom link. It s an incredibly powerful option if I ever saw one.
Note No Microsoft-provided files were harmed during this exercise.
Using Control Templates
When you were searching for examples of where the FeatureMenuTemplate was used, you looked at two .ascx files, welcome.ascx and DefaultTemplates.ascx, located in the [12]\ TEMPLATE\CONTROLTEMPLATES folder. These control files are really just regular ASP .NET controls
CHAPTER 5 EVOLVING THE DEFAULT USER EXPERIENCE
containing code used to render aspects of the user interface. If you are familiar with the ASP.NET template framework, you know there are no real secrets to the ASP .NET code.
Overview of Control Templates
There are some important things to note about how these controls are used, specifically, regarding the DefaultTemplates.ascx file. If you open that file, you will notice that it is composed solely of SharePoint:RenderingTemplate tags, each with a unique ID. You may even begin to see, from the ID values, what these templates do. Figure 5-13 shows the beginning of the file with the rendering templates collapsed.
Figure 5-13. Beginning of DefaultTemplates.ascx The long story short here is that each of these templates is responsible for creating an aspect of the user interface. Because of this, learning more about this file is incredibly important. I will show a few examples to illustrate what these templates do and then explain how you can use this information to modify the user experience. Let s start simple, shall we Look for the rendering template with an ID value of TextField. It should look something like this: <SharePoint:RenderingTemplate ID="TextField" runat="server"> <Template> <asp:TextBox ID="TextField" MaxLength="255" runat="server"/><br> </Template> </SharePoint:RenderingTemplate> It s nothing too fancy just a simple text box. I expect you can imagine where this template is used. Try modifying the asp:TextBox, and see what happens when you add a new item
Copyright © OnBarcode.com . All rights reserved.