URL van persoonlike aksie word nie vertoon vir die Nuwe funksie

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 (Hy het gesê hy het 'n blog inskrywing met behulp van 'n instrument hy nie verstaan ​​nie).

Vandag, 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, maar toe ek dit geaktiveer (sonder foute) dit eenvoudig nie wys op die drop-down menu.

I finally realized that I misspelled "SharePoint" in die area kenmerk van die <CustomAction> node. This is the bad elements.xml file:

<?xml weergawe="1.0" encoding="UTF-8" ?>
<Elemente xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 Groepid="SiteActions"
 Plek="Microsoft.Sharepoint.StandardMenu"
 Volgorde="100"
 Titel="Hallo!"
 Description="Custom menu aksie bygevoeg via 'n funksie."
 ImageUrl="_layouts / images / menuprofile.gif">

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

  </CustomAction>
</Elemente>

Goeie:

<?xml weergawe="1.0" encoding="UTF-8" ?>
<Elemente xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 Groepid="SiteActions"
 Plek="Microsoft.SharePoint.StandardMenu"
 Volgorde="100"
 Titel="Hallo!"
 Description="Custom menu aksie bygevoeg via 'n funksie."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Elemente>

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

Ek troos in die feit dat 'n dag in die toekoms, Ek sal in staat wees om te sê met oortuiging, "back in the day, Ek het drie myl te loop heuwel in die sneeu (kaalvoet!) in order to deploy a custom feature to MOSS. You kids, jy weet nie hoe maklik jy dit! Get off my lawn!"

Kan nie wag.

</einde>

Technorati Tags: ,

4 gedagtes oor "URL van persoonlike aksie word nie vertoon vir die Nuwe funksie

  1. David Remillard
    Baie dankie! This one got me, te! Found your post after wasting a bunch of time. Dankie vir die opstel van! Dave.
    Antwoord
  2. Geen naam
    Dankie! Dankie! Dankie!
    Dit het my litteraly 3 uur totdat ek het gevind dat jou webwerf en sien dat dit inderdaad i gespel Sharepoint verkeerd. Why the hell is it "SharePoint"?!?!
    In elk geval baie dankie man!
    Antwoord

Laat 'n antwoord te David Remillard Kanseleer antwoord

Jou e-posadres sal nie gepubliseer word nie. Verpligte velde gemerk *