Карыстацкі URL Дзеянне не будзе адлюстроўвацца для новых функцый

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 (Ён сказаў, як ён напісаў у блогу запіс з дапамогай інструмента ён не разумее).

Сёння, 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, but when I activated it (without error) it simply wouldn’t show up on the drop-down menu.

I finally realized that I misspelled "SharePoint" in the Location attribute of the <CustomAction> вузел. This is the bad elements.xml file:

<?XML версія="1.0" кадаваньне="UTF-8" ?>
<Элементы XMLNS="HTTP://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 Размяшчэнне="Microsoft.Sharepoint.StandardMenu"
 Sequence="100"
 Назва="Прывітанне!"
 Апісанне="Custom menu action added via a feature."
 ImageUrl="_layouts/images/menuprofile.gif">

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

  </CustomAction>
</Элементы>

Good:

<?XML версія="1.0" кадаваньне="UTF-8" ?>
<Элементы XMLNS="HTTP://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 Размяшчэнне="Microsoft.SharePoint.StandardMenu"
 Sequence="100"
 Назва="Прывітанне!"
 Апісанне="Custom menu action added via a feature."
    >
    <UrlAction Url="HTTP://www.xyzzy.com"/>
  </CustomAction>
</Элементы>

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

I take solace in the fact that some day in the future, I’ll be able to say with conviction, "back in the day, I had to walk three miles up hill in the snow (barefoot!) in order to deploy a custom feature to MOSS. You kids, you don’t know how easy you have it! Get off my lawn!"

Can’t wait.

</канец>

Technorati Тэгі: ,

4 думкі пра «Карыстацкі URL Дзеянне не будзе адлюстроўвацца для новых функцый

  1. Без назвы
    Дзякуй! Дзякуй! Дзякуй!
    It took me litteraly 3 hours until i found your website and saw that indeed i spelled Sharepoint wrong. Why the hell is it "SharePoint"?!?!
    anyways thanks a lot man!

Пакінуць каментар да Без назвы адмяніць адказ

Ваш электронны адрас не будзе апублікаваны. Абавязковыя палі пазначаныя * *