SharePoint 2010: Create a Custom Page Layout for a Publishing Site using SharePoint Designer

本文详细介绍了如何在SharePoint 2010中快速创建自定义页面布局,包括从打开站点到浏览器、设置基本信息、检查布局并将其应用于内容页面的全过程。

Creating a custom layout for a Publishing site in SharePoint 2010 is not very difficult to accomplish, but there are a few steps that that might cause you hang ups if you didn’t know where to look. I will show you how easy it is to quickly create your own custom page layout using a simple example.

Step 1

Open your Publishing site in a browser, and in the Site Actions menu, select Site Settings. On the Site Settings page, under Galleries, click on Master pages and page layouts.

Step 2

On the Master pages and page layouts page, in the Ribbon, under Library tools, select Documents. In the Documents menu, select New Document found on the left, and then in the New Document sub menu, select Page Layout.

Step 3

On the New Page Layout page, you will be asked to provide basic information regarding this page layout. By default you will want to leave the Content Type Group set to Page Layout Content Types and the Content Type Name set as an Article Page. You can set the URL name to a filename that describes this  layout although it is up to you. I suggest that you do not use spaces either. The Title is what will be displayed on the layout menu for a content page. The description can be left blank if you wish. Click OK at the bottom of the page once you are ready.

Step 4

Once the page layout has been created, you will be sent back to the Master Page Gallery. You will see that your new page layout has been added, although its Approval Status is marked as Draft. I am now going to skip a few steps as the next few steps depend on what you intend to do with this new page layout. By default, the new page layout will look similar to the image below in SharePoint Designer. To open the page layout in SPD, you can either click the page layout file name in the browser and select Edit in SharePoint Designer from the drop down menu, or you can simply open your site in SPD and navigate to the All Files->_catalogs->masterpage directory. The steps that I am skipping are updating the page layout. You can transfer over content areas from existing page layouts, make any updates as needed, etc. Don’t forget that you can grab content area id from your masterpage as well.

Step 5

Once you have made changes to the page layout as required, you will have to check in, publish and approve the layout before a content page can use it. Open the Master Page Gallery in a browser as before and click on your new page layout. On the dropdown menu, select Check In. On the Check In window, I suggest checking in a Major Version.

Your Approval Status should now be set to Pending. We now need to Approve this layout, so click on the on your new page layout again and on the dropdown menu, select Approve/Reject. On the Approve/Reject window, select Approved. This item will become visible to all users. and click OK.

Your new page layout should now be approved and ready to be used on a content page.

Step 6

You are now ready to add a new page (or open an existing page that you want set to use your new layout). If you would like to add a new page, click on the Site Actions button and in the Site Actions menu select New Page. You will only be asked for a page name. Go ahead and enter a new page name, in my example, it will be testpage1.

Step 7

You are seconds away. Once the new page has been added, you will be taken to the new page, already opened to be edited. Above the ribbon, select the Page option (between Browse and Publish). In the page menu, select Page Layout. In the Page Layout dropdown, you will see your new page layout. Select your layout, and you are done.

Summary

Once you click on the new page layout, it will automatically be applied to your page. If you followed these steps and did not make any changes to your new page layout then most likely once your new page layout has been applied, you will have a content page with not much to do. This is because the layout page we created doesn’t do much by itself. If will be up to you to modify the page layout content areas to add web part zones, controls, new layouts, etc.

转载于:https://www.cnblogs.com/zhuwenlubin/archive/2012/02/08/2342973.html

一、数据采集层:多源人脸数据获取 该层负责从不同设备 / 渠道采集人脸原始数据,为后续模型训练与识别提供基础样本,核心功能包括: 1. 多设备适配采集 实时摄像头采集: 调用计算机内置摄像头(或外接 USB 摄像头),通过OpenCV的VideoCapture接口实时捕获视频流,支持手动触发 “拍照”(按指定快捷键如Space)或自动定时采集(如每 2 秒采集 1 张),采集时自动框选人脸区域(通过Haar级联分类器初步定位),确保样本聚焦人脸。 支持采集参数配置:可设置采集分辨率(如 640×480、1280×720)、图像格式(JPG/PNG)、单用户采集数量(如默认采集 20 张,确保样本多样性),采集过程中实时显示 “已采集数量 / 目标数量”,避免样本不足。 本地图像 / 视频导入: 支持批量导入本地人脸图像文件(支持 JPG、PNG、BMP 格式),自动过滤非图像文件;导入视频文件(MP4、AVI 格式)时,可按 “固定帧间隔”(如每 10 帧提取 1 张图像)或 “手动选择帧” 提取人脸样本,适用于无实时摄像头场景。 数据集对接: 支持接入公开人脸数据集(如 LFW、ORL),通过预设脚本自动读取数据集目录结构(按 “用户 ID - 样本图像” 分类),快速构建训练样本库,无需手动采集,降低系统开发与测试成本。 2. 采集过程辅助功能 人脸有效性校验:采集时通过OpenCV的Haar级联分类器(或MTCNN轻量级模型)实时检测图像中是否包含人脸,若未检测到人脸(如遮挡、侧脸角度过大),则弹窗提示 “未识别到人脸,请调整姿态”,避免无效样本存入。 样本标签管理:采集时需为每个样本绑定 “用户标签”(如姓名、ID 号),支持手动输入标签或从 Excel 名单批量导入标签(按 “标签 - 采集数量” 对应),采集完成后自动按 “标签 - 序号” 命名文件(如 “张三
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值