კატეგორია არქივი: სხვადასხვა

საბაჟო სამოქმედო URL ვერ ჩვენების ახალი მხატვრული

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 (მან განაცხადა, როგორც მან დაწერა წაკითხვა შესვლის გამოყენებით ინსტრუმენტი მისთვის გაუგებარია).

დღეს, 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, but when I activated it (without error) it simply wouldn’t show up on the drop-down menu.

I finally realized that I misspelled "SharePoint" in the Location attribute of the <CustomAction> კვანძის. This is the bad elements.xml file:

<?xml მობილური="1.0" კოდირების="utf-8" ?>
<ელემენტები xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolbar"
 GroupId="SiteActions"
 საიდან="Microsoft.Sharepoint.StandardMenu"
 Sequence="100"
 სათაური="გამარჯობა!"
 აღწერა="Custom menu action added via a feature."
 ImageUrl="_layouts/images/menuprofile.gif">

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

  </CustomAction>
</ელემენტები>

Good:

<?xml მობილური="1.0" კოდირების="utf-8" ?>
<ელემენტები xmlns="http://schemas.microsoft.com / SharePoint /">
  <CustomAction
 Id="SiteActionsToolBar"
 GroupId="SiteActions"
 საიდან="Microsoft.SharePoint.StandardMenu"
 Sequence="100"
 სათაური="გამარჯობა!"
 აღწერა="Custom menu action added via a feature."
    >
    <UrlAction Url="http://www.xyzzy.com"/>
  </CustomAction>
</ელემენტები>

ამ ერთი კარგი ორი საათი დამჭირდა იმის გასარკევად

I take solace in the fact that some day in the future, I’ll be able to say with conviction, "back in the day, მე ფეხით სამი მილის up hill in თოვლის (barefoot!) in order to deploy a custom feature to MOSS. You kids, თქვენ არ ვიცი, რამდენად მარტივია თქვენ ეს! Get off my lawn!"

ვერ დაველოდებით.

</ბოლო>

პროგრამები Tags: ,