Sitecore PowerShell Extensions
Slack
YouTube
Stack Exchange
Donate
Search…
Introduction
Disclaimer
Installation
Training
Community
Interfaces
Working with Items
Modules
Remoting
Security
Releases
Troubleshooting
Code Snippets
Appendix
Common
Indexing
Packaging
Presentation
Add-PlaceholderSetting
Add-Rendering
Get-Layout
Get-LayoutDevice
Get-PlaceholderSetting
Get-Rendering
Get-RenderingParameter
Merge-Layout
New-PlaceholderSetting
New-Rendering
Remove-PlaceholderSetting
Remove-Rendering
Remove-RenderingParameter
Reset-Layout
Set-Layout
Set-Rendering
Set-RenderingParameter
Switch-Rendering
Provider
Security
Session
Powered By
GitBook
Get-LayoutDevice
Returns the layout for the specified device.
Syntax
1
Get-LayoutDevice
[
-
Name
]
<String>
2
​
3
Get-LayoutDevice
[
-
Default
]
Copied!
Detailed Description
The Get-LayoutDevice command returns the layout for the specified device.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-Name <String>
Name of the device to return.
Aliases
Text
Required?
true
Position?
1
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Default <SwitchParameter>
Determines that a default system layout device should be returned.
Aliases
Text
Required?
true
Position?
1
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Sitecore.Data.Items.Item
Outputs
The output type is the type of the objects that the cmdlet emits.
Sitecore.Data.Items.DeviceItem
Notes
Help Author: Adam Najmanowicz, Michael West
Examples
EXAMPLE 1
Get Print device
1
PS
master:\>
Get-LayoutDevice
"Print"
Copied!
EXAMPLE 2
Get default device
1
PS
master:\>
Get-LayoutDevice
-
Default
Copied!
EXAMPLE 3
Get all layout devices
1
PS
master:\>
Get-LayoutDevice
*
Copied!
Related Topics
​
https://github.com/SitecorePowerShell/Console/
​
​
Add-Rendering
​
​
New-Rendering
​
​
Set-Rendering
​
​
Get-Rendering
​
​
Remove-Rendering
​
​
Get-Layout
​
​
Set-Layout
​
Previous
Get-Layout
Next
Get-PlaceholderSetting
Last modified
10d ago
Export as PDF
Copy link
Contents
Syntax
Detailed Description
Parameters
-Name <String>
-Default <SwitchParameter>
Inputs
Outputs
Notes
Examples
EXAMPLE 1
EXAMPLE 2
EXAMPLE 3
Related Topics