پنهان کردن عملیات های سفارشی در SharePoint

چند ماه قبل, در حالی که کار بر روی یک پروژه برای مشتری, I created a feature. Among other things, که قابلیت تعریف یک عمل سفارشی (این به نظر می رسد تحت تنظیمات سایت). The only purpose for this custom action was to demonstrate to me that the feature activation was working as expected. بطور اساسی, من آن را به عنوان یک فرم خام اشکال زدایی استفاده می شود.

خیلی خجالت من, این مصنوع اشکال زدایی راه خود را از توسعه تمدن به UAT و به تولید ساخته شده قبل از اینکه کسی را در اطراف به درخواست کردم, "این لینک xyzzy است?"

By now, ما در تولید هستید و من واقعا نمی خواهید به حذف از ویژگی های, رفع elements.xml و سپس نصب مجدد.

تاد بدتری از با اشاره به یک راه آسان که مسئولیت رسیدگی به آن. In his words:

"CustomActions are not copied into the database, they are read directly from the Elements.xml file and copied into application state at runtime. پس, you don’t need to deactivate, uninstall, reinstall, and reactivate the Feature to remove the CustomAction. Just remove it from the Elements.xml file and recycle the application pool(ها) effected. The next time the Feature is in scope, you won’t see the CustomAction anymore."

I followed his instructions and, البته, they work.

در مورد من, this is a department level installation with just a single WFE. If you find yourself with this problem in future and with multiple WFE’s, I believe you’ll have to make the change in each.

</پایان>

مشترک شدن در وبلاگ من.

پاسخ

آدرس ایمیل شما منتشر نخواهد شد. بخشهای موردنیاز علامتگذاری شدهاند *