Cartlanna Catagóire: Gan catagóir

Nach mbeidh an Chustaim URL Gnímh Taispeáin do Feature Nua

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 (a dúirt sé mar a scríobh sé ar iontráil bhlag ag baint úsáide as uirlis nach dtuigeann sé).

Sa lá atá inniu, 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, ach nuair a ngníomh liom é (gan earráid) Ní bheadh ​​sé a thaispeáint ach suas ar an roghchlár anuas-.

I finally realized that I misspelled "SharePoint" i tréith Suíomh an <CustomAction> nód. This is the bad elements.xml file:

<?xml leagan="1.0" ionchódú="utf-8" ?>
<Eilimintí xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 Suíomh="Microsoft.Sharepoint.StandardMenu"
 Seicheamh="100"
 Teideal="Dia duit!"
 Cur Síos="Gníomh roghchlár saincheaptha leanas isteach i trí ghné."
 ImageUrl="_layouts / images / menuprofile.gif">

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

  </CustomAction>
</Eilimintí>

Dea-:

<?xml leagan="1.0" ionchódú="utf-8" ?>
<Eilimintí xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 Suíomh="Microsoft.SharePoint.StandardMenu"
 Seicheamh="100"
 Teideal="Dia duit!"
 Cur Síos="Gníomh roghchlár saincheaptha leanas isteach i trí ghné."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Eilimintí>

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

Mé sólás a ghlacadh i ar an bhfíric go lá éigin sa todhchaí, Beidh mé in ann a rá le ciontú, "back in the day, Bhí mé ag siúl trí mhíle suas cnoc sa sneachta (cosnochta!) in order to deploy a custom feature to MOSS. You kids, nach bhfuil a fhios agat conas éasca go bhfuil tú é! Get off my lawn!"

Nach féidir fanacht.

</deireadh>

Clibeanna Technorati: ,