The asset finder allow the user to search for assets and then add those to the content of the page.
It is located in the SidePanel
Initialized on Document#event:cq-editor-loaded (all asset controllers should be registered prior to this)
- Source:
- ui/ui.assetFinder.js
Classes
Members
-
$el :jQuery
-
Corresponding jQuery element
Type:
- jQuery
- Source:
- ui/ui.assetFinder.js
-
registry :Object
-
Contains all registered controllers
Type:
- Object
- Source:
- ui/ui.assetFinder.js
-
TagList :Granite.author.ui.TagList
-
Lists of tags
Type:
- Granite.author.ui.TagList
- Source:
- ui/ui.assetFinder.js
Methods
-
register(name, controller)
-
Register an asset controller.
Asset controllers are responsible for the loading of assets of a given type in the Asset Finder.
To add drag and drop capabilities for new asset types, make sure to also register the appropriate AssetDragAndDrop Controller under the dropControllerNote that this doesn't add the corresponding asset type in the select list. This is done on "cq-editor-loaded", and thus assumes that all asset controllers have been registered before the event is triggered.
Parameters:
Name Type Description namestring Internal name of the controller, also used to derive the corresponding asset type
controllerGranite.author.ui.assetFinder~AssetController Controller instance
- Source:
- ui/ui.assetFinder.js
Type Definitions
-
AssetController
-
Type:
- Object
- Source:
- ui/ui.assetFinder.js
Properties:
Name Type Description setUpfunction Called before loading the current asset controller
tearDownfunction Called before unloading the current asset controller
loadAssetsfunction Loads the assets of a certain type
setServletfunction Override the servlet path
setSearchPathfunction Override the search path
setItemResourceTypefunction Override the item resource type
resetSearchPathfunction Resets the search path to the default value
viewInAdminRootstring URI Template used to view assets of this type in admin (e.g., "/assetdetails.html{+item}"). It will be expanded with the selected asset path