Desturi Action URL Je, si Kuonyesha kwa Makala Mpya

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 (alisema kama yeye aliandika kuingia blog kutumia chombo hawezi kuelewa).

Leo, 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, lakini wakati mimi ni ulioamilishwa (bila makosa) yake tu bila kuonyesha juu drop-down menu.

I finally realized that I misspelled "SharePoint" katika sifa Eneo la <CustomAction> nodi. This is the bad elements.xml file:

<?xml toleo="1.0" encoding="UTF-8" ?>
<Vipengele xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 Mahali="Microsoft.Sharepoint.StandardMenu"
 Mlolongo="100"
 Title="Hujambo!"
 Description="Desturi orodha action aliongeza kupitia kipengele."
 ImageUrl="_layouts / images / menuprofile.gif">

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

  </CustomAction>
</Vipengele>

Nzuri:

<?xml toleo="1.0" encoding="UTF-8" ?>
<Vipengele xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 Mahali="Microsoft.SharePoint.StandardMenu"
 Mlolongo="100"
 Title="Hujambo!"
 Description="Desturi orodha action aliongeza kupitia kipengele."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Vipengele>

Hiyo ilinichukua saa mbili nzuri kujua 🙂

Mimi kuchukua faraja katika ukweli kwamba baadhi ya siku katika siku zijazo, Mimi itakuwa na uwezo wa kusema na hatia, "back in the day, Mimi nilikuwa na kutembea umbali wa kilomita tatu juu ya kilima katika theluji (hana viatu!) in order to deploy a custom feature to MOSS. You kids, huwezi kujua jinsi rahisi una hiyo! Get off my lawn!"

Hawezi kusubiri.

</mwisho>

Tags technorati: ,

4 mawazo juu ya "Desturi Action URL Je, si Kuonyesha kwa Makala Mpya

  1. Daudi Remillard
    Shukrani sana! This one got me, pia! Found your post after wasting a bunch of time. Shukrani kwa ajili ya posting! Dave.
    Kujibu
  2. Hakuna jina
    Asante! Asante! Asante!
    Ilinichukua litteraly 3 masaa mpaka i kupatikana tovuti yako na kuona kwamba kwa kweli i yameandikwa Sharepoint vibaya. Why the hell is it "SharePoint"?!?!
    anyways shukrani mtu mengi!
    Kujibu

Kuondoka Reply

Anwani yako si kuchapishwa. Mashamba required ni alama *