Documentation > CMS Template API Library > AssetPanelEntry > GetPanelsFromFolders(Asset,String,AssetParams,AssetType,String,String)
GetPanelsFromFolders
Gets a sublist from the current panel using folder children. See asset.GetPanelsFromFolders
public List<AssetPanelEntry> GetPanelsFromFolders(Asset,String,AssetParams,AssetType,String,String)
Returns
A List of AssetPanelEntry objects
Parameters
Name | Description | Type |
---|---|---|
folder | The folder whose children we will use to initialize the list | CrownPeak.CMSAPI.Asset |
panelName | The name of the panel | System.String |
assetParams | Optional: Used like in GetFileList or GetFolderList to filter data, etc. | CrownPeak.CMSAPI.AssetParams |
type | Optional: Can be used to get back only a specific type of child - file or folder, defaults to AssetType.Unspecified which returns both | CrownPeak.CMSAPI.AssetType |
labelName | Optional: The string that will be used to store the folder's label when we store the panel data. Use lower case. Defaults to panelName + ".label" | System.String |
idName | Optional: The string that will be used to store the folder's id when we store the panel data. Use lower case. Defaults to panelName + ".id" | System.String |