FLUID-5102: UIO Builder needs an easy way to specify the template that holds the panels

Metadata

Source
FLUID-5102
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Anastasia Cheetham
Created
2013-07-26T11:14:21.404-0400
Updated
2013-10-04T11:26:19.673-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Prefs Framework

Description

When someone is creating a prefs editor (such as the discovey tool, pcp, pmt) or even simply adding panels to UIO (e.g. video player), they need to override the HTML template that holds the panels (in UIO, this is the FatPanelUIOptions.html file, which contains list item elements, one for each panel).

Currently, the VideoPlayer overrides the file through a demands block for fluid.uiOptions.resourceLoader that specifies the path to its own custom file, like this:

fluid.demands("fluid.uiOptions.resourceLoader", ["fluid.videoPlayer.addMediaPanels"], {
options: {
templates: {
uiOptions: "../html/VPUIOptions.html"
}
}
});

Given that this is something that every prefs editor will need to do, it would be nice if there was an easier way to do it, perhaps as a top-level option to the builder-created uio, or even as a part of the auxiliary schema.

Comments

  • Justin Obara commented 2013-10-04T11:26:19.671-0400

    This can be handled by supplying the correct configuration to the templateLoader