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:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<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"
>
<UrlAction
Url="javascript:window.location= '{SiteUrl}/_layouts/AddFieldFromTemplate.aspx?List={ListId}&Source=' + window.location"/>
</CustomAction>
</Elements>
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!
Here's a screenshot of the result:
分享到:
相关推荐
Refactoring: Improving the Design of Existing Code
Notepad++ v6.5.5 new features and bug fixes: Add character encoding auto-detection feature. Fix the word-completion hanging problem by typing ... Add "Command line arguments help" menu item command.
Martin大叔经典著作《重构》第二版,仅供交流学习之用。 This eagerly awaited new edition has been fully updated to reflect crucial changes in the programming landscape.Refactoring, Second Edition,...
经典丛书txt版. 《Refactoring: Improving the Design of Existing Code》
mobile: The context menu and double click features are supported on mobile devices. combobox: The 'groupField' and 'groupFormatter' options are available to display items in groups. tree: When ...
Installing features on the site and managing existing site features 39 Creating permission levels and security groups that use them 46 Managing site templates and their availability on sites 50 ...
SharePoint Designer and connect to an existing SharePoint site. In Chapter 2, we will learn what SharePoint Designer does and how to get the most out of the interface. We will learn how to arrange ...
Item 5: Beware of Developing and Testing Based on an Existing System Chapter 2. Test Planning Item 6: Understand the Task At Hand and the Related Testing Goal Item 7: Consider the Risks Item 8: Base...
o Added 'Add Header Line To CSV/Tab-Delimited File' option. When this option is turned on, the column names are added as the first line when you export to csv or tab-delimited file. * Version 1.82...
Presents in-depth coverage of thenew features and functions of SharePoint 2010 Demonstratesinstallation, configuration, and upgrading existing SharePoint 2007servers Discusses architecture and ...
这是从现有 matlab 2D 或 3D 图形中提取数据的简单代码。
Implementing Custom Master Pages Programming against Site Pages Implementing Custom Application Pages Developing Custom Server Controls Extending Existing Controls Hosting a WCF Service in SharePoint ...
Implementing Custom Master Pages Programming against Site Pages Implementing Custom Application Pages Developing Custom Server Controls Extending Existing Controls Hosting a WCF Service in SharePoint ...
Martin Fowler和《重构:改善既有代码的设计》(中文版)另几位作者清楚揭示了重构过程,他们为面向对象软件开发所做的贡献,难以衡量。《重构:改善既有代码的设计》(中文版)解释重构的原理(principles)和最佳实践...
Column Handler - Add Columns to Explorer‘s Listview in Win2k/WinME and greater.ExtractIcon Handler - Change Shell object Icons to use your own.IconOverlay Handler - Add Custom Overlay images to ...
Cisco - 802.11 Wireless Network Site Surveying and Installation.chm Introduction Goals and Methods Part I: Understanding the Prerequisites of a Site Survey Chapter 1. Defining a Wireless ...
Deleting or Recycling an Existing Item . 125 Advanced Topics 126 Handling Concurrency Conflicts 126 Identity Management and Refresh 130 Disconnected Entities . 132 Model Extensions and Versioning 134 ...
Different from existing carry and forward solutions, we make use of the predicable vehicle mobility, which is limited by the traffic pattern and the road layout. Based on the existing traffic pattern...