I’m still in the habit of crafting my feature XML files by hand since it’s all quite new to me. I don’t want to rely on a front-end tool that does stuff I don’t understand (kazao je kako je napisao blog zapis koristeći alat on ne razumije).
Danas, I was trying to add a custom action to the site settings but it just wouldn’t show up. I could install the feature and see it in the site features, ali kad sam ga aktivirati (bez greške) to jednostavno ne bi se pojaviti na padajućem izborniku.
I finally realized that I misspelled "SharePoint" Mjesto u atribut <CustomAction> čvor. This is the bad elements.xml file:
<?xml verzija="1.0" kodiranje="UTF-8" ?> <Elementi xmlns="http://schemas.microsoft.com / SharePoint /"> <CustomAction Id="SiteActionsToolbar" GroupId="SiteActions" Lokacija="Microsoft.Sharepoint.StandardMenu" Slijed="100" Naslov="Bok!" Opis="Custom izborniku Akcija dodao putem značajke." ImageUrl="_izgledi / slike / menuprofile.gif"> <UrlAction Url="http://www.xyzzy.com"/> </CustomAction> </Elementi> |
Dobro:
<?xml verzija="1.0" kodiranje="UTF-8" ?> <Elementi xmlns="http://schemas.microsoft.com / SharePoint /"> <CustomAction Id="SiteActionsToolBar" GroupId="SiteActions" Lokacija="Microsoft.SharePoint.StandardMenu" Slijed="100" Naslov="Bok!" Opis="Custom izborniku Akcija dodao putem značajke." > <UrlAction Url="http://www.xyzzy.com"/> </CustomAction> </Elementi> |
That one took me a good two hours to figure out 🙂
Ja utjehu u činjenici da su neki dan u budućnosti, Ja ću biti u mogućnosti reći s uvjerenjem, "back in the day, Morao sam hodati tri milje do brda u snijegu (bos!) in order to deploy a custom feature to MOSS. You kids, ne znam kako se lako ga imate! Get off my lawn!"
Jedva čekam.
</kraj>