ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LEARNING_RESOURCE_OPEN, getClass());
translator = new PackageTranslator(PACKAGE, ureq.getLocale());
vcDisplay = new VelocityContainer("main", VELOCITY_ROOT + "/display.html", translator, this);
VFSItem item = null;
item = sharedFolder.resolve(INDEXDOTHTML);
if (item == null) item = sharedFolder.resolve(INDEXDOTHTM);
if (item == null) item = sharedFolder.resolve(DEFAULTDOTHTML);
if (item == null) item = sharedFolder.resolve(DEFAULTDOTHTM);
if (item == null) {
sharedFolder.setLocalSecurityCallback(new ReadOnlyCallback());
controller = new FolderRunController(sharedFolder, true, true, ureq, getWindowControl());
controller.addControllerListener(this);
} else {
controller = new WebsiteDisplayController(ureq, getWindowControl(), sharedFolder, item.getName());
}
vcDisplay.put("displayer", controller.getInitialComponent());
// Add html header with css definitions to this velocity container
if (previewBackground) {