如何在sharepoint中创建子列表 [英] How to create sub-lists in sharepoint
问题描述
是否可以在 sharepoint 中创建子列表?我目前正在使用文件夹来组织我的内容,但在以编程方式访问文件夹时,文件夹在 sharepoint 中是一个完全不同的概念.
Is it possible to create sub lists in sharepoint? I am currently using folders to organise my content but folders are a totally different concept in sharepoint when accessing them programactically.
我想实现以下目标:
-网络
----列表A
---------子列表1
---------子列表2
----列表B
---------子列表1
---------子列表2
I want to achieve something like:
-web
----List A
---------Sub List 1
---------Sub List 2
----List B
---------Sub List 1
---------Sub List 2
编辑 1:
我正在尝试在网络正下方有一个可排序的列表.目前,我通过使用自定义 SortOrder 列和标题创建自定义文件夹来实现这一点.文件夹标题最终将成为公共站点上的部分标题,每个文件夹中的项目将是该部分下的内容.有没有更好的方法来做一些看似微不足道的事情?
I am trying have a sortable list directly below the web. Currently iam achieving this by creating a custom folder with a custom SortOrder Column and a Title. The folders Title ultimately will become the Section Title on the public site and the items within each folder will be the content underneath the section. Is there a better way to do something wich seem fairly trivial?
感谢您的帮助
编辑 2(对杰森的回应):
Edit 2 (response to jason):
好吧,我们希望内容井井有条.假设我们有一个企业领导名单.在这个列表中,我们有董事长、首席执行官、董事文件夹.然后这些文件夹中的每一个都是项目(人).有没有更好的组织方式?
Well we'd like to keep the content organised. Say we have a corporate leadership list. Within this list we have the Chairman, CEO, Directors folders. Then with each of these folders are the items (people). Is there a better way to organise this?
推荐答案
具体来说,没有.SharePoint 中不能有嵌套列表.
Specifically, no. You can't have nested lists in SharePoint.
但是,您可以通过多种方式获得与最终用户非常相似的内容.有两种选择:
However, there are a number of ways that you can get something that to end users is pretty similar. There are two options:
第一个选项是分组.包括您想要分组的列(例如,对于包含城市名称的列表,您可能想要按州或国家/地区或两者进行分组),然后设置一个视图以按该(或那些)列分组.
The first option is grouping. Include a column that you want to group by (e.g. for a list containing city names, you might want to group by state or country--or both), then setup a view to group by that (or those) columns.
第二种方法是在同一个站点(必须是同一个站点)中使用两个单独的列表,并使用查找列类型将一个列表链接到另一个列表(例如,您创建一个列表来保存国家/地区列表,一个列表保存一个州列表,第三个列表包含城市列表,其中包含州和国家/地区的查找列).您只能进行一级查找,因此您不能例如在州列表上有一个国家查找列,然后将州列表链接到城市列表并显示该城市所在的国家;你可以很好地显示州(如果你在州列表上创建一个计算列来显示州,国家",那么你可以在城市列表中显示结果)但仅此而已.
The second way is to use two separate lists within the same site (must be same site) and link one to the other using a lookup column type (e.g. you create one list to hold a list of countries, one list to hold a list of states, and a third list to hold a list of cities that includes lookup columns for state and country). You can only have one level of lookup, so you can't, for example, have a lookup column for country on the state list and then link the state list to the city list AND display the country the city is in; you can display the state just fine (and if you create a calculated column on the state list to show "State, Country", then you can display the result in the city list) but that's all.
这篇关于如何在sharepoint中创建子列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!