Powershell更改页面布局库中的页面布局内容类型 [英] Powershell to change page layout content type in the page layout library

查看:85
本文介绍了Powershell更改页面布局库中的页面布局内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Powershell复制,签入和发布所有主题文件,一切正常,但是母版页和复制时的页面布局与正确的内容类型没有关联.

I use a powershell to copy, checkin and publish all my theme files, everything works OK but the master page and the page layouts when copied are not associated with the right content type.

我必须手动进入每个页面,然后将内容类型更改为母版页".用于母版页或页面布局"用于页面布局.

I have to manually go to each and change the content type to "master page" for the master page or "Page layout" for page layout.

更改该命令的poweshell命令是什么.

What will be the poweshell command to change that.

谢谢

米歇尔

推荐答案

米歇尔,

这是给您的博客

https://myspworld.wordpress.com/2012/08/16/powershell-script-to-change-the-page-layout/

https://myspworld.wordpress.com/2012/08/16/powershell-script-to-change-the-page-layout/

http://www.c-sharpcorner.com/blogs/updating-page-layout-and-content-type-using-powershell1

http://www.c-sharpcorner.com/blogs/updating-page-layout-and-content-type-using-powershell1


这篇关于Powershell更改页面布局库中的页面布局内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆