Included in the Editor is an Asset Manager add-on. Using the Asset Manager add-on, you can browse and manage your web assets (upload and delete files, create and delete folders). Asset Manager add-on is located in folder assetmanager. The main file is assetmanager.asp (for ASP) and assetmanager.php (for PHP). To enable the Asset Manager add-on:
If you enable the Asset Manager add-on, these dialogs will automatically show a Browse button :
The Browse button will open the Asset Manager add-on dialog so that you can select a file which can be inserted as hyperlink or object (image, flash, video, etc).
Asset Manager add-on allows you to specify more than one base/root folder (up to 4). Here are example settings in seetings.asp or settings.php :
arrBaseFolder(0)="/assets/"
arrBaseName(0)="Assets"
arrBaseFolder(1)="/public_assets/"
arrBaseName(1)="Public Assets"
or
$sBaseVirtual0="/assets";
$sBase0="c:/inetpub/wwwroot/assets";
$sName0="Assets";
$sBaseVirtual1="/public_assets";
$sBase1="c:/inetpub/wwwroot/public_assets";
$sName1="Public Assets";
If required, you can localize the Asset Manager add-on to be displayed in specific language by setting the lang variable in querystring:
<script>
var oEdit1 = new InnovaEditor("oEdit1");
oEdit1.cmdAssetManager="modalDialogShow
('/assetmanager/assetmanager.asp?lang=de-DE',640,445);";
oEdit1.REPLACE("txtContent");
</script>
or
<script>
var oEdit1 = new InnovaEditor("oEdit1");
oEdit1.cmdAssetManager="modalDialogShow
('/assetmanager/assetmanager.php?lang=de-DE',640,445);";
oEdit1.REPLACE("txtContent");
</script>
The current available values c variable are: da-DK (Danish), nl-NL (Dutch), fi-FI (Finnish), fr-FR (French), de-DE (German), zh-CHS (Chinese Simplified), zh-CHT (Chinese Traditional), nn-NO (Norwegian), es-ES (Spanish), sv-SE (Swedish). If lang variable is not specified, English version will be displayed.
The Asset Manager dialog will return the selected file url in the form of 'relative to root' path, for example:
/assets/image.gif
If required, it can be changed to return absolute path by setting. Here is the setting required in seetings.asp and settings.php :
bReturnAbsolute=true
or
$bReturnAbsolute=true;
This will make the Asset Manager dialog returns:
http://yourservername/assets/image.gif
Inserting images using absolute path usually is required if you use the Editor in web-based email applications.