Custom URL Veprimi nuk do të shfaq për tipar i ri

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 (ai tha se si ai u shkroi një blog entry duke përdorur një mjet që ai nuk e kupton).

Sot, 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, por kur kam aktivizuar atë (pa gabim) ai thjesht nuk do të tregojë deri në drop-down menu.

I finally realized that I misspelled "SharePoint" në atributin Vendndodhja së <CustomAction> node. This is the bad elements.xml file:

<?xml version="1.0" encoding="utf-8" ?>
<Elemente xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 Vend="Microsoft.Sharepoint.StandardMenu"
 Rend="100"
 Titull="Përshëndetje!"
 Përshkrim="Veprim Custom menu shtuar nëpërmjet një tipar."
 ImageUrl="_layouts / images / menuprofile.gif">

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

  </CustomAction>
</Elemente>

Mirë:

<?xml version="1.0" encoding="utf-8" ?>
<Elemente xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 Vend="Microsoft.SharePoint.StandardMenu"
 Rend="100"
 Titull="Përshëndetje!"
 Përshkrim="Veprim Custom menu shtuar nëpërmjet një tipar."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Elemente>

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

Kam marrë ngushëllim në faktin se disa ditë në të ardhmen, Unë do të jetë në gjendje të themi me bindje, "back in the day, Unë kisha për të ecin tre kilometra deri kodër në dëborë (zbathur!) in order to deploy a custom feature to MOSS. You kids, ju nuk e dini se sa e lehtë që ju të keni atë! Get off my lawn!"

Nuk mund të presim.

</fund>

Technorati Tags: ,

4 mendime mbi "Custom URL Veprimi nuk do të shfaq për tipar i ri

  1. No name
    Falemnderit! Falemnderit! Falemnderit!
    Ajo mori mua litteraly 3 orë deri sa kam gjetur faqen tuaj te internetit dhe pashë se me të vërtetë unë shkruhen SharePoint gabuar. Why the hell is it "SharePoint"?!?!
    anyways thanks a lot njeri!

Lini një Përgjigju me No name Cancel përgjigje

Adresa juaj e emailit nuk do të publikohet. Fusha e kërkuar janë shënuar *