Comments on: Provisioning a default layout and content when adding a wiki page https://blog.hompus.nl/2012/06/07/provisioning-a-default-layout-and-content-when-adding-a-wiki-page/ Because I like to share knowledge Thu, 15 Dec 2016 15:45:04 +0000 hourly 1 https://wordpress.org/?v=5.2.4 By: Balaji https://blog.hompus.nl/2012/06/07/provisioning-a-default-layout-and-content-when-adding-a-wiki-page/#comment-118 Wed, 10 Sep 2014 06:41:14 +0000 http://blog.hompus.nl/2012/06/07/provisioning-a-default-layout-and-content-when-adding-a-wiki-page/#comment-118 How to create a template with multiple rows and different number of columns.

]]>
By: Markus https://blog.hompus.nl/2012/06/07/provisioning-a-default-layout-and-content-when-adding-a-wiki-page/#comment-117 Sun, 20 Oct 2013 14:42:19 +0000 http://blog.hompus.nl/2012/06/07/provisioning-a-default-layout-and-content-when-adding-a-wiki-page/#comment-117 Hi Michael

What you described here is exactly my challenge as well. But, already at the start I receive an error:
$web = Get-SPWeb http://server/teamsite
$list = $web.Lists["Site Pages"]
$listItem = $list.Items[2] # My test page
$listItem["Wiki Content"] # Returns HTML

results in
Cannot index into a null array.
At line:1 char:1
+ $listitem["Wiki Content"]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray

Please advise.
Thanks and Cheers

]]>