`
solorez
  • 浏览: 245003 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类

SharePoint Feature: Add Column from Existing Site Columns menu item

阅读更多

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}&amp;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:

分享到:
评论

相关推荐

    Notepad++ 6.5.5

    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.

    Refactoring: Improving the Design of Existing Code 第二版

    Martin大叔经典著作《重构》第二版,仅供交流学习之用。 This eagerly awaited new edition has been fully updated to reflect crucial changes in the programming landscape.Refactoring, Second Edition,...

    南大通用GBase8s SQL常用SQL语句(十八).docx

    ADD Column 子句 ::= ADD [COLUMN] new_column_name data_type [DEFAULT default_value] [BEFORE existing_column_name] 其中,new_column_name 是要添加的列的名称,data_type 是该列的数据类型,default_value 是...

    Refactoring: Improving the Design of Existing Code

    《重构:改善既有代码的设计》是由马丁·福勒(Martin Fowler)、厄文·贝克(Erich Beck)、戴夫·布兰特(Dave Brant)和安德鲁·奥普迪克(Andreas Opdyke)以及约翰·罗伯茨(John Roberts)合著的一本经典软件...

    Microsoft SharePoint 2010 Developer Reference

    - **Custom Actions:** Custom actions extend the SharePoint user interface by adding new commands or modifying existing ones. - **Ribbons:** Ribbons provide a customizable toolbar for SharePoint pages....

    Microsoft SharePoint 2010 and Windows PowerShell 2.0

    - **Managing Site Features**: The chapter covers installing features on sites and managing existing site features. This includes enabling, disabling, and updating features programmatically. - **...

    jquery-easyui-1.3.4

    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 ...

    Publishing.SharePoint.Designer.Tutorial.Jul.2008

    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 ...

    refactoring-improving the design of existing code.pdf

    《重构:改善既有代码的设计》是一本专注于软件开发领域的经典著作,由Martin Fowler著述,主要探讨了如何通过重构技术来提升现有代码的设计质量。重构是软件开发过程中的一个重要环节,它并不改变软件的外部行为,...

    经典书籍《重构》《Refactoring: Improving the Design of Existing Code》

    ### 经典书籍《重构》(Refactoring: Improving the Design of Existing Code) #### 书籍概述 《重构:改善既有代码的设计》是一本由马丁·福勒(Martin Fowler)、肯特·贝克(Kent Beck)、约翰·布兰特(John ...

    sql用法大全,包含sql多种基本用法

    - **语法**: `CREATE TABLE new_table AS SELECT column1, column2 FROM existing_table;` - 示例: `CREATE TABLE tab_new AS SELECT col1, col2 FROM tab_old;` 2. **删除表** - **语法**: `DROP TABLE table_...

    端口查看工具

    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...

    Professional Sharepoint 2010 Administration

    Presents in-depth coverage of thenew features and functions of SharePoint 2010 Demonstratesinstallation, configuration, and upgrading existing SharePoint 2007servers Discusses architecture and ...

    Extract data from an existing .fig file:Extract data from an existing matlab 2D or 3D figure-matlab开发

    在 MATLAB 开发中,有时我们需要从已有的图形对象中获取数据,这可能是因为我们想要分析图中的曲线、图像或者进一步处理这些数据。标题提到的".fig"文件是 MATLAB 保存图形用户界面(GUI)或图形对象的一种文件格式...

    Wrox.Expert.WSS 3.0.and.MOSS.2007.Programming

    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 ...

    Wrox.Expert.WSS 3.0.and.MOSS.2007.Programming -2

    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 ...

    EasyNSE 0.2

    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 ...

    Create-Master-Page-from-HTML-in-SharePoint:可用于在SharePoint 2013,SharePoint 2016和SharePoiint Online中创建新母版页HTML和CSS文件

    在SharePoint平台上,母版页(Master Page)是定义网站整体布局和样式的关键元素,它为所有页面提供统一的外观和交互体验。本教程将详细解释如何从HTML和CSS文件创建自定义母版页,并将其应用于SharePoint 2013、...

Global site tag (gtag.js) - Google Analytics