I wrote a simple script in order to push an item when i create a new site:

$item = New-Item -Path $SitecoreContextItem.Paths.Path -Name "bidule" -ItemType "/sitecore/templates/Project/OSK/OSK Home"

Unfortunately, my item is created outside from the site newly created because it seems the SitecoreContextItem references the folder in which i want to create the site and not the site itself.

Does anyone know, how i could fix that problem?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.