URL acción personalizada non aparecerá a New Features

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 (el dixo como escribiu un blog usando unha ferramenta que non entende).

Hoxe, 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, pero cando activei (sen erro) el simplemente non estaba a aparecer no menú desplegable.

I finally realized that I misspelled "SharePoint" o atributo de localización do <CustomAction> node. This is the bad elements.xml file:

<?xml versión="1.0" codificación="utf-8" ?>
<Elementos xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 Localización="Microsoft.Sharepoint.StandardMenu"
 Secuencia="100"
 Título="Ola!"
 Descrición="Acción menú personalizado engadido mediante unha característica."
 ImageUrl="_layouts / images / menuprofile.gif">

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

  </CustomAction>
</Elementos>

Bo:

<?xml versión="1.0" codificación="utf-8" ?>
<Elementos xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 Localización="Microsoft.SharePoint.StandardMenu"
 Secuencia="100"
 Título="Ola!"
 Descrición="Acción menú personalizado engadido mediante unha característica."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</Elementos>

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

I se consolar co feito de que, algún día no futuro, Eu vou ser capaz de dicir con convicción, "back in the day, Eu tiña que andar tres quilómetros de altura outeiro na neve (descalzo!) in order to deploy a custom feature to MOSS. You kids, non sabe como é doado tes que! Get off my lawn!"

Mal podo esperar.

</final>

Technorati Tags: ,

4 pensamentos sobre "URL acción personalizada non aparecerá a New Features

  1. David Remillard
    Moitas grazas! This one got me, tamén! Found your post after wasting a bunch of time. Grazas por publicar! Dave.
    Responder
  2. Ningún nome
    Grazas! Grazas! Grazas!
    Levei litteraly 3 horas ata que eu atope o seu sitio e vin que en realidade eu soletrou mal Sharepoint. Why the hell is it "SharePoint"?!?!
    de calquera forma moitas grazas home!
    Responder

Deixe unha resposta David Remillard cancelar resposta

Enderezo de correo electrónico non será publicado. Os campos obrigatorios están marcados *