SharePoint Developer Team Blog
Brought to you by Microsoft teams working on SharePoint developer content, Visual Studio tools, and of course the platform itself!
There has been a lot of talk about tokenization behavior with regards to the Server ribbon in SharePoint 2010. I hope that this blog post can help some of you that are running into problems using tokens.
In general, here are the tokens that are resolved and where they are resolved:
ListUrlDir
ItemId
ItemUrl
RecurrenceId
SiteUrl
ListId
Source
SelectedListId
SelectedItemId
List View
Yes
No
List Form
Custom actions in SharePoint Foundation 2010 can be categorized in two ways: filtered and unfiltered custom actions. A filtered custom action is one that uses the RegistrationId and RegistrationType attributes, for example to target a specific list. An unfiltered custom action is one that does not use these attributes. Their behavior when handling URL tokens is different dependent upon the type of custom action being used to customize the Server ribbon.
The following table lists the tokens and how they’re resolved in different scenarios.
There are, however, two special cases when dealing with these URL tokens.
I hope this helps clear up some of the confusion around the topic!