zoukankan      html  css  js  c++  java
  • Sharepoint创建List

    (一)在一个环境下创建site 首先在sharepoint 2013 Central Administration中run administration

    --Application Management中的Manage webapplications

    --new--设置数据将Database NameDd的WSS_Content_对应的数据,

    确定后会create site collections--Title需要更改 User Name需要添加--ok

    (二)Visual Studio--New--project--Visual c#--Office/Shareoint--SharePoints Solutions--Empty Project

    --Add NewItem--List,统一更改两个elements.xml中的TemplateType=100的值,

    --增加数据 类似:

    <ListInstance Title="NameDemo" OnQuickLaunch="TRUE" TemplateType="167" Url="Lists/NameDemo" Description="My List Instance">
    <Data>
    <Rows>
    <Row>
    <Field Name="nSex">female</Field>
    <Field Name="FirstName">1;#Sharon</Field>

    </Row>
    </Rows>
    </Data>
    </ListInstance>

    ***当有外键时lookup 在Schema.xml中需要增加ShowField,该Name为FieldName不是displayname  List

    <Field Name="FirstName1" ID="{aa9934b5-fdd5-4abe-a7af-f7bb0cdaec34}" DisplayName="FirstName" ShowField="Name1"  List="Lists/TestData" Type="Lookup"/></Fields>

    <三>添加图片时,创建 Module-- Site Pages--Images, 删除txt,然后在Elements中添加Url="SitePages",例如:

    <Module Name="Site Pages" Url="SitePages">
    <File Path="Site PagesImages hMK0L9IKG.jpg" Url="Site Pages/Images/thMK0L9IKG.jpg" />
    </Module>

    将图片加入后,Show All Files,地址就会在Site Contents 中的Site Pages里面可以看到,将地址就可以复制

    <四>打包Wsp  在site Setting --Solutions  下载后,可以添加到需要的环境中去,actives,查看manage site features中actives没

  • 相关阅读:
    Python菜鸟之路:Django 序列化数据
    Python菜鸟之路:Django 数据验证之钩子和Form表单验证
    Python菜鸟之路:Django 路由补充1:FBV和CBV
    Python菜鸟之路:Django 文件上传的几种方式
    Python菜鸟之路:Django 分页
    Python菜鸟之路:Django 信号
    Python菜鸟之路:Django 缓存
    《将博客搬至CSDN》
    Java基础语法
    Java基础语法
  • 原文地址:https://www.cnblogs.com/sharon0203/p/6235962.html
Copyright © 2011-2022 走看看