Move an Application Page from WebApplication to Central Administration
-
06-12-2019 - |
Domanda
I've made an Application Page (derived from LayoutsPageBase
) and it's showing in the WebApplication Settings correctly. Now, I need to move it to the Central Administration level.
- Must I change my VS2010 SharePoint project Site URL ?
- If yes, is there another way ?
- Any ideas ?
Soluzione
It's not too complicated.
- Move your page from the
Layouts
mapped directory to theTEMPLATE\ADMIN
mapped directory. - Modify your Page Link or Module
Elements.xml
as following :
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="(YourActionId)"
GroupId="SiteDirectory"
Location="Microsoft.SharePoint.Administration.GeneralApplicationSettings"
Sequence="1000"
Title="(YourTitle)">
<UrlAction Url="_admin/(YourPath)/(YourPage).aspx"/>
</CustomAction>
</Elements>
You can customize the GroupId
and the Location
with these options (MSDN). All that left is to go to your Central Administration -> Site Actions -> Site Settings -> Manage Site Collections Features -> Activate your feature.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange