Documentation > CMS Template API Library > Asset > GetPanelsFromFolder(Asset,String,FilterParams,AssetType,String,String)

GetPanelsFromFolder

The same as GetPanelsFromFolder(Asset,String,AssetParams,AssetType,String,String) but with FilterParams instead of AssetParams.

public List<AssetPanelEntry> GetPanelsFromFolder(Asset,String,FilterParams,AssetType,String,String)


Returns

A List of AssetPanelEntry objects

Parameters

NameDescriptionType
folder The folder whose children we will use to initialize the list CrownPeak.CMSAPI.Asset
panelName The name of the panel System.String
filterParams Used like in GetFilterList to filter data, etc. CrownPeak.CMSAPI.FilterParams
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

Connect with Crownpeak