This should be a simple task. Depending on your requirements, the implementation can vary a bit, but what I would do is this:- just copy the webview dashlet code, rename it to your own.- remove the frontend code which allows the user to change the address (or make it optional)just remove the markup for the Config click and remove the JS code in share/components/dashlets/webview.js which handles config click- edit the controller (which is Javascript, but it's still easy) or just delete it and create a Java one. - in the controller, set the config property of the URL and possibly title to render to whatever you need.Ie: the default code for Alfresco 4.2 is
var webView = {
id : "WebView",
name : "Alfresco.dashlet.WebView",
assignTo : "webView",
options : {
componentId : instance.object.id,
webviewURI : model.uri,
webviewTitle : model.webviewTitle,
webviewHeight : model.height,
isDefault : model.isDefault
}
};
.Just change the <strong>model.uri</strong> and <strong>model.webviewTitle</strong> to your constructed url.But all of this seems to be so you can load some custom web, depending on the user? Because depending on what you want to show, there are easier ways.