FileBrowserServicesCreateComponent Method
|
Creates a component for a binary asset file. This operation will create a reference for the asset in CMS content
Namespace:
IngeniuxCMService
Assembly:
IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax public XHRServiceResponseGeneric<FileBrowserComponentCreateResult> CreateComponent(
FileBrowserCreateComponentInput info
)
Public Function CreateComponent (
info As FileBrowserCreateComponentInput
) As XHRServiceResponseGeneric(Of FileBrowserComponentCreateResult)
public:
virtual XHRServiceResponseGeneric<FileBrowserComponentCreateResult^>^ CreateComponent(
FileBrowserCreateComponentInput^ info
) sealed
abstract CreateComponent :
info : FileBrowserCreateComponentInput -> XHRServiceResponseGeneric<FileBrowserComponentCreateResult>
override CreateComponent :
info : FileBrowserCreateComponentInput -> XHRServiceResponseGeneric<FileBrowserComponentCreateResult>
Parameters
- info
- Type: FileBrowserCreateComponentInput
The instructions on how to create the component, which include whether or not to create a thumbnail for image asset
Examples
Sample JSON input
{
"info": {
"basePath": "icons",
"thumb": {
"createThumbnail": false,
"width": "100",
"height": "21"
},
"metaData": {
"createComponent": true,
"src": "Images/icons/zBrush.gif",
"fileName": "zBrush.gif",
"alt": "Test",
"keywords": "Test ",
"hspace": "",
"vspace": "",
"align": "",
"border": ""
}
}
}
Return Value
Type:
XHRServiceResponseGenericFileBrowserComponentCreateResultThe information of component that was created, include the component page id and thumb nail information for image asset
Examples
Sample JSON return
{
"code": 0,
"error": null,
"message": {
"newComponent": {
"id": "x116",
"thumb": null
}
}
}
See Also