I am working on a Custom Action that I want to add to all list instances as well as all user groups. The purpose is to export the list / group as a document to allow the user to export it when Client Integration is not enabled (it's a FBA site). I have the following XML in my elements.xml file:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
GroupId = "ActionsMenu"
Location="Microsoft.SharePoint.StandardMenu"
ImageUrl="/_layouts/images/MenuSpreadsheet.gif"
Sequence="1000"
Title="Export to Excel">
<UrlAction Url="~site/_layouts/LetGuide/ExportToExcel.aspx?ListId={ListId}"/>
</CustomAction>
<CustomAction
GroupId = "ActionsMenu"
Location="Microsoft.SharePoint.PeoplePage"
ImageUrl="/_layouts/images/MenuSpreadsheet.gif"
Sequence="1000"
Title="Export to Excel">
<UrlAction Url="~site/_layouts/LetGuide/ExportToExcel.aspx?ListId={ListId}"/>
</CustomAction>
</Elements>
My question is: On the receiving ASPX page, is the list ID enough for me to pull out the specific SPList instance (this might be on the root web or a sub-web - the feature is deployed at site scope)? And will it work for user groups as-is? (I am not sure if they have list IDs in the same manner as normal lists).
If anyone can point me to some sample code or documentation for how a receiving ASPX page could be created, that would be a great help.