Custom Action URL ay hindi Makakaapekto ba ang Ipakita para sa Bagong Tampok

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 (sinabi niya bilang siya ay nagsulat ng isang blog entry gamit ang isang tool na wala siyang maintindihan).

Ngayon, 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, ngunit kapag ako ay nag-activate ito (ganap) ito lamang ay hindi lalabas sa mga drop-down na menu.

I finally realized that I misspelled "SharePoint" sa Lokasyon ng katangian ng <CustomAction> buko. This is the bad elements.xml file:

<?xml salin="1.0" pag-encode="utf-8" ?>
<Mga Sangkap xmlns="http://schemas.microsoft.com / sharepoint /">
  <CustomAction
 ID="SiteActionsToolbar"
 GroupId="SiteActions"
 Kinalalagyan="Microsoft.Sharepoint.StandardMenu"
 Pagkakasunud-sunod="100"
 Pamagat="Hello!"
 Paglalarawan="Custom menu action na idinagdag sa pamamagitan ng isang tampok."
 ImageUrl="_layouts / images / menuprofile.gif">

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

  </CustomAction>
</Mga Sangkap>

Mabuti:

<?xml salin="1.0" pag-encode="utf-8" ?>
<Mga Sangkap xmlns="http://schemas.microsoft.com / sharepoint /">
  <CustomAction
 ID="SiteActionsToolBar"
 GroupId="SiteActions"
 Kinalalagyan="Microsoft.SharePoint.StandardMenu"
 Pagkakasunud-sunod="100"
 Pamagat="Hello!"
 Paglalarawan="Custom menu action na idinagdag sa pamamagitan ng isang tampok."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Mga Sangkap>

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

Ako ng mga mag-aliw sa ang katunayan na ang ilang mga araw sa hinaharap, Kukunin ko magagawang sabihin na may matibay na paniniwala, "back in the day, Mayroon akong maglakad sa tatlong milya up burol sa niyebe (walang sapin ang paa!) in order to deploy a custom feature to MOSS. You kids, Hindi mo alam kung paano madaling mayroon ka nito! Get off my lawn!"

Hindi na makahintay.

</dulo>

Technorati Tags: ,

4 ano sa tingin mo "Custom Action URL ay hindi Makakaapekto ba ang Ipakita para sa Bagong Tampok

  1. David Remillard
    Salamat ng maraming! This one got me, masyado! Found your post after wasting a bunch of time. Salamat sa pag-post! Dave.
    Sumagot
  2. Walang pangalan
    Salamat! Salamat! Salamat!
    Ito ay kinuha sa akin litteraly 3 oras hanggang sa i natagpuan ang iyong website at nakita na talagang i nabaybay nang mali Sharepoint. Why the hell is it "SharePoint"?!?!
    anyways salamat ng maraming tao!
    Sumagot

Mag-iwan ng Sumagot sa David Remillard Ikansela reply

Ang iyong email address ay hindi nai-publish. Mga kinakailangang patlang ay minarkahan *