November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
<script type='text/javascript' src="<%=EPiServer.Global.EPConfig.RootDir%>util/javascript/system.js">
<script type='text/javascript' src="<%=EPiServer.Global.EPConfig.RootDir%>util/javascript/common.js">
Include a button that calls a javascript function to loads the FileManager
<script type="text/javascript">
function SelectImageLink()
{
var url = '/<%= EPiServer.Global.EPConfig.EditDir %>FileManagerBrowser.aspx';
var returnvalue;
var linkAttributes = new Object();
returnValue = OpenDialog(url, linkAttributes, 445, 412);
if (returnValue != undefined && returnValue != 0)
{
// do your stuff here
}
}
/Mari
Hi,
I wish to do pretty much the same thing. I would like to use the exact same functionality as the 'URL to Image' property but am using EPiServer CMS Version 5 SP1.
Please could you tell me how to do this?
Thanks
Carl
Include the following javascript files
<script type='text/javascript' src="<%= EPiServer.UriSupport.ResolveUrlFromUtilBySettings("javascript/episerverscriptmanager.js") %>"></script>
<script type='text/javascript' src="<%= EPiServer.UriSupport.ResolveUrlFromUIBySettings("javascript/system.js") %>" ></script>
<script type='text/javascript' src="<%= EPiServer.UriSupport.ResolveUrlFromUIBySettings("javascript/system.aspx") %>" ></script>
Include a button that calls a javascript function to loads the FileManager
// Pass the page or parent page id to the popup. Will be used in page browser dialog var pageId = ''; var parentPageId = ''; // The file manager needs the folder id in order to show or create the "Page Files" directory. var folderId = ''; function SelectImageLink() { var url = '?id=' + pageId + '&parent=' + parentPageId + '&folderid=' + folderId; url += '&selectedfile=' + selectedfile; var linkAttributes = new Object(); var dialogArguments = linkAttributes; var features = {width: 600, height: 412}; var callbackArguments = new Object(); /* opens the filemanagerbrowser dialog */ EPi.CreateDialog( url, OnFileDialogClosed, callbackArguments, dialogArguments, features); }
Specify the javascript fuction that should run when an image is selected
/* function called after file browser dialog has returned and closed*/
function OnFileDialogClosed(returnValue, callbackArguments) { if (returnValue != undefined && returnValue != 0) { //do your stuff here } }