---
title: "SharePoint Feature: Add Column from Existing Site Columns menu item"
author: "solorez"
date: "2007-09-06T09:29:47Z"
tags: []
slug: "sharepoint-feature-add-column-from-existing-site-columns-menu-item"
draft: false
lastmod: "2007-09-06T09:29:47Z"
id: 121533
url: "https://solorez.iteye.com/blog/121533"
---

Question: what is the easiest way to add a column to a list or document library in SharePoint 2007?  
Answer: navigate to the list, from the **Settings** menu, choose **Create Column**.

Question: how do you add an existing Site Column to a list or document library?  
Answer: navigate to the list, from the **Settings** menu, choose **List/Document Library Settings**, scroll down to the **Columns** section and click **Add from existing site columns**.

In the beta versions of SharePoint 2007 there was an easier way to add an existing Site Column to a list or document library because there was another menu item in the **Settings** menu: **Add column from existing site columns**. For those of you who are nostalgic about the beta's of Office 12, and want to have the menu item back: I've created simple feature to add the menu item:

&lt;?xml version="1.0" encoding="utf-8"?&gt;  
&lt;Elements xmlns="[http://schemas.microsoft.com/sharepoint/"](http://schemas.microsoft.com/sharepoint/%22)&gt;  
    &lt;CustomAction  
        Id="{F32CD702-0391-4b55-A8D6-7653650DEF95}"  
        Location="Microsoft.SharePoint.StandardMenu"  
        GroupId="SettingsMenu"  
        RegistrationType="List"  
        Sequence="0"  
        ImageUrl="\_layouts/images/menuaddcolumn.gif"  
        Title="Add column from existing site columns"  
        Description="Add an existing site column to store additional information about each item."  
        Rights="ManageLists"  
        &gt;  
        &lt;UrlAction  
            Url="javascript:window.location= '{SiteUrl}/\_layouts/AddFieldFromTemplate.aspx?List={ListId}&amp;Source=' + window.location"/&gt;  
    &lt;/CustomAction&gt;  
&lt;/Elements&gt;

The feature uses the Javascript tric which I explained yesterday (this feature was actually the reason for it). If you want to download the complete feature, packaged in a nice SharePoint Solution (WSP); [just click here](http://blogs.leadit.be/files/SmartFeatureAddSiteColumn.zip)!

Here's a screenshot of the result:

![](http://blogs.leadit.be/images/SmartFeatureAddSiteColumn.gif)

Technorati tags: [sharepoint](http://technorati.com/tags/sharepoint), [sharepoint 2007](http://technorati.com/tags/sharepoint%202007), [feature](http://technorati.com/tags/feature), [site columns](http://technorati.com/tags/site%20columns)

![](http://weblogs.asp.net/aggbug.aspx?PostID=3764130)