The KWizCom team utilizes their experience and knowledge to give fresh insight on Microsoft's SharePoint and CRM Products and Technologies...
Igor Goldshtaub is KWizCom's VP Proffessional Services
By Igor Goldshtaub, VP Professional Services
KWizCom Corporation
Summary
In the following article Igor Goldshtaub, VP Professional Services for KWizCom Corporation explains the process of adding a web part to your web parts gallery using a feature.
Want to add web parts to your web parts gallery using a SharePoint feature?
Let me show you the easiest way...
Background
If you want register a web part for a site collection, you should add the web part to the Web Part Gallery in the site collection.
The KWizCom Tagging Feature is convenient to use here as it allows you to see the Tags Cloud Web Part in the site collection where the Tagging Feature is activated.
It is important you understand everything in SharePoint 2007 is based on features. So - to add your web part to the web parts gallery you will need to create a special feature for your web part with the correct scope as well:
Let's say you have sample web part named "MySampleWebPart".
The first thing you need to do is create a folder named "MySampleWebPart" inside the Features folder:
C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATEFEATURESMySampleWebPart
Now, copy your "MySampleWebPart .dwp" file inside the newly created folder and create 2 XML files named "elements.xml" and "Feature.xml".
To complete your work you should modify both XML files and then install and activate the feature.
Open the "Feature.xml" file for editing (for example in notepad) and put the following XML there:
<?xml version="1.0" encoding="utf-8"?>
<Feature Id=" 8425EAF7-6ACE-4597-83C7-831CA8614D6D"
Title="MySampleWebPart"
Description="Here is my sample web part"
ImageUrl="GenericFeature.gif"
Scope="Site"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml" />
</ElementManifests>
</Feature>
Note: Each feature must have a unique ID. Please make sure that you use your own generated GUID for it.
Open the "elements.xml" file for editing (for example in notepad) and put the following XML there:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module
Name="WebPartPopulation"
List="113"
Url="_catalogs/wp"
RootWebOnly="TRUE">
<File Url="MySampleWebPart.dwp" Type="GhostableInLibrary" />
</Module>
</Elements>
Done!
Now, you can install and activate the feature that will add the web part you the Web Parts Gallery.
Install Feature
Run STSADM command:
"C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12BINstsadm" -o installfeature -name MySampleWebPart -force
Activate Feature
After installation, you should have this new site collection feature:
Activate the feature to see the web part in web parts gallery.
Result
If you did everything correctly, you will see your web part in Web Part gallery
How To Fix A Slow Running Computer? – Windows Registry Repair Tool Review
By: Austin Porter | 03/01/2010Are you looking for ways to fix a slow running computer? I know how frustrating a slow computer can be, because I have been where you are before. My PC performance was running really slowly, unlike how it used to run when I first bought my PC. The programs were taking an excessively long time to load, and I was frequently typing faster than my computer screen could display the letters.
Why Is My PC So Slow? - Registry Cleaner Rating
By: Austin Porter | 03/01/2010Are you wondering why your PC is so slow? Many people who have a computer are also thinking the same thing, but most people do not understand computers well enough to answer that. Do you remember your computer speed when you first bought your PC, compared to the speed it is running at now? After fixing my own computer's speed, I now know why used computers will start to slow down after some time.
My PC Is Very Slow - How To Fix Registry File Fast?
By: Austin Porter | 03/01/2010Do you find that your computer is suddenly running very slow, and you wished you knew the reason why? Well that was exactly what I was going through a few months back, and I got nervous because I thought something in my computer system had been damaged, and that I had to get a new PC.
How To Fix Windows XP Blue Screen Error? - Computer Registry Cleaner Review
By: Austin Porter | 03/01/2010Is your computer infected with the XP blue screen error? This is the error that shows up as blue screen with white text, and there is usually no way to recover the computer, except to restart it. For some people, the blue screen may go away after that, but that was certainly not the case for me a few months ago. It kept reappearing regularly afterwards, and I was convinced that something was wrong with the system.
PSP Go launching with 225 downloadable games
By: Jack Corner | 03/01/2010On Thursday, the 16GB PSP Go will finally launch at a price point of $250--just $50 less than its bigger brother, the 120GB PlayStation 3 Slim. To help hype the digital-download-only handheld's debut, Sony Computer Entertainment America has announced that some 16,000 pieces of PSP Go-compatible content will be available on October 1. The vast majority will be television episodes, some 13,300 in all. Next up is movies, totaling 2,300.
Install MSN Messenger with 10,000+ Bonus Smilies!
By: Mike Keller | 02/01/2010Install MSN Messenger Instantly & Free, Including 10,000+ Bonus Smilies!
SAP Business One Full Service in Chicago and Atlanta Consulting Notes
By: Andrew Karasev | 02/01/2010This small and mid-size business Corporate ERP and MRP application is relatively new on US accounting software market, however it is so flexible and robust (plus it has SAP brand, which is important in the sense of reliability and future commitment), that it provides tough competition to such traditional lower mid-market Corporate ERP applications as Microsoft Dynamics GP (formerly known as Great Plains Dynamics), Microsoft Small Business Financials (this small business corporate ERP...
PSP Go Download Center Makes It Easy To Download Music, Movies, Games, Software, Themes And More On PSP
By: Jack Corner | 02/01/2010PSP is one of the must have gadgets, a handheld device that became so popular with gamers due to its flexibility. PSP is not only limited for video games but it can also play music, videos, display photos, watch TV shows, getting software and you can surf the net too. It's a good thing that music can also be played on PSP which benefits a large percentage of people fond of listening music wherever they go. PSP gave music lovers the advantage to carry all their music collections in one small de
How do I tell what the next list item ID is?
By: KWizCom Corporation | 09/08/2009 | SoftwareRoi Kolbinger, SharePoint Consultant for KWizCom Professional Services explains how to discover what the ID of the next list item is.
Radio Button Custom Field Choice – Going from Vertical to Horizontal with Java Script
By: KWizCom Corporation | 23/06/2009 | SoftwareRoi Kolbringer of KWizCom Professional Services shows readers how to use JavaScript to take radio button custom field choices from the norm in MOSS – vertical, to horizontal.
HC Solutions joins the KWizCom Partner Network
By: KWizCom Corporation | 02/06/2009 | ComputersHC Solutions, one of the leading SharePoint Solution providers in Austria, recently joined the global KwizCom Partners Network.
KWizCom Products Are Now Compliant with Web Content Accessibility Guidelines (WCAG)
By: KWizCom Corporation | 07/05/2009 | SoftwareKWizCom is proud to announce that all new releases of KWizCom's SharePoint and Dynamics CRM add-ons are compliant with the Web Content Accessibility Standard (WCAG). KWizCom's VP Sales & Marketing Nimrod Geva says: "Each new product we release will be upgraded to ensure that it is accessible to everyone. We want all members of the community to be able to fully realize the potential of KWizCom solutions. Now the disabled will be able to benefit as well!"
SharePoint Survey Plus version 2.1.00 - new release by KWizCom
By: KWizCom Corporation | 30/04/2009 | SoftwareKWizCom's latest release of Survey Plus version 2.1.00 brings organizations new, revenue saving benefits.
How to skip SharePoint spell check for an input control
By: KWizCom Corporation | 10/04/2009 | ComputersKWizCom's VP R&D Shai Petel makes complex SharePoint issues – simple. Here he explains how to skip SharePoint spell check for an input control Shai Petel is a Microsoft Certified Trainer and Technology Specialist. He is also the main contributor on the KwizCom SharePoint CRM blog
Spexception: Trying To Use An Spweb Object That Has Been Closed Or Disposed And Is No Longer Valid
By: KWizCom Corporation | 15/03/2009 | SoftwareKwizcom's Vp R&d, Shai Petel Explains How to Handle a Baffling Error Familiar to Most Sharepoint Developers.