Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to remove layout from an item #1111

Closed
michaellwest opened this issue May 29, 2019 · 1 comment
Closed

Add command to remove layout from an item #1111

michaellwest opened this issue May 29, 2019 · 1 comment
Labels
area-commands Involves functions and cmdlets. improvement Extra sugar and spice.
Milestone

Comments

@michaellwest
Copy link
Member

Looking for something as simple as the following:

$itemId = "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
$item = Get-Item -Path "master:" -ID "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
$layoutDevice = Get-LayoutDevice -Name "Print"

Remove-Layout -Item $item -Device $layoutDevice -FinalLayout
@michaellwest michaellwest added this to the 6.0 milestone May 29, 2019
@michaellwest michaellwest added area-commands Involves functions and cmdlets. improvement Extra sugar and spice. labels May 29, 2019
michaellwest added a commit that referenced this issue May 29, 2019
This command will wholesale remove the layout and all renderings beneath.
@michaellwest
Copy link
Member Author

Implemented.

michaellwest added a commit that referenced this issue Jun 2, 2019
This command will wholesale remove the layout and all renderings beneath.
@michaellwest michaellwest added the -release-highlight Exciting change that should be highlighted in the release notes and celebrated by SPE fans. label Sep 25, 2019
@michaellwest michaellwest removed the -release-highlight Exciting change that should be highlighted in the release notes and celebrated by SPE fans. label Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-commands Involves functions and cmdlets. improvement Extra sugar and spice.
Projects
No open projects
Development

No branches or pull requests

1 participant