简体   繁体   English

Sharepoint-仅使用WebPart创建空白页

[英]Sharepoint - create blank page with only webpart

A client has asked that I create a series of filters on a list, with some heavily customised output. 一位客户要求我在列表上创建一系列过滤器,并提供一些高度自定义的输出。 To get the output correct I'll need to style a content query webpart using XSL - which is fine, that's pretty simple. 为了获得正确的输出,我需要使用XSL设置内容查询Web部件的样式-很好,这很简单。

However, my main problem is how to apply multiple filters to the webpart. 但是,我的主要问题是如何将多个过滤器应用于Webpart。 I don't know how to have one webpart insert parameters into a content query webpart, so my solution was to use Ajax to load seperate pages (containing webparts) into the page. 我不知道如何将一个Webpart插入参数到内容查询WebPart中,所以我的解决方案是使用Ajax将单独的页面(包含WebPart)加载到页面中。

So... unless this is all crazy and a bad idea, how can I create a .asp page which has absolutely NOTHING except a single webpart which I can preconfigure and then hard code into the .asp page? 所以...除非这一切都是疯狂的和一个坏主意,否则如何创建一个绝对没有其他内容的.asp页,除了可以预先配置的单个Web部件,然后将代码硬编码到.asp页中?

I'm not a .asp man, in fact I'm only really doing this as a favour, so please don't respond saying that I need to do xyz in SharePoint Designer (to which I don't have access) or build a custom module from scratch. 我不是.asp人,实际上我只是在帮忙,所以请不要回应说我需要在SharePoint Designer中进行xyz(我无权访问)或进行构建从头开始的自定义模块。 :) :)

Any ideas? 有任何想法吗?

Since you are specific about not wanting a SharePoint Designer solution, I will give you one using 'Tommy' 由于您特定于不需要SharePoint Designer解决方案,因此我将使用“ Tommy”给您一个

In 'Tommy': 在“汤米”中:
File => New => ASPX Page 文件=>新建=> ASPX页面
Insert => SharePoint Controls => WebPartZone 插入=> SharePoint控件=> WebPartZone

Go in the browser, http://server/mycustompage.aspx Edit, insert your WebPart. 在浏览器中进入http://server/mycustompage.aspx编辑,插入WebPart。

'Tommy' is a free download, by the way, get it here . 顺便说一下,“ Tommy”是免费下载的,请在此处下载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM