Azzjoni Custom URL mhux se display għall-karatteristika ġdida

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 (huwa qal kif hu kiteb blog dħul użu ta 'għodda hu ma jifhimx).

Illum, 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, iżda meta I attivat (mingħajr żball) hija sempliċement mhux se juru fuq il-menu drop-down.

I finally realized that I misspelled "SharePoint" fil-attribut Location tal- <CustomAction> node. This is the bad elements.xml file:

<?xml Verżjoni="1.0" encoding="UTF-8" ?>
<Elementi xmlns="http://schemas.microsoft.com / Sharepoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 Post="Microsoft.Sharepoint.StandardMenu"
 Sekwenza="100"
 Titolu="Hello!"
 Deskrizzjoni="Azzjoni menu Custom miżjud permezz ta 'karatteristika."
 ImageUrl="_layouts / stampi / menuprofile.gif">

    <UrlAction Url="http://www.xyzzy.com"/>

  </CustomAction>
</Elementi>

Tajba:

<?xml Verżjoni="1.0" encoding="UTF-8" ?>
<Elementi xmlns="http://schemas.microsoft.com / Sharepoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 Post="Microsoft.SharePoint.StandardMenu"
 Sekwenza="100"
 Titolu="Hello!"
 Deskrizzjoni="Azzjoni menu Custom miżjud permezz ta 'karatteristika."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Elementi>

That one took me a good two hours to figure out 🙂

I jieħdu solace fil-fatt li xi jum fil-futur, I ser tkun tista 'tgħid mal-kundanna, "back in the day, I kellhom jimxu tliet mili up għoljiet fil-borra (barefoot!) in order to deploy a custom feature to MOSS. You kids, inti ma tkunx taf kif faċli ikollok! Get off my lawn!"

Ma tistax tistenna.

</aħħar>

4 ħsibijiet dwar "Azzjoni Custom URL mhux se display għall-karatteristika ġdida

  1. Ebda isem
    Grazzi! Grazzi! Grazzi!
    Hija ħadet me litteraly 3 sigħat sakemm sibt website tiegħek u raw li tabilħaqq i spelt Sharepoint ħażin. Why the hell is it "SharePoint"?!?!
    anyways grazzi raġel ħafna!

Ħalli Irrispondi

Your email address mhux se jkun ippubblikat. Meħtieġa oqsma huma mmarkati *