Skip to content

Commit

Permalink
FLUID-5934: Corrected paths for pref framework prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Aug 22, 2016
1 parent 46f2063 commit 079fbb6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
12 changes: 6 additions & 6 deletions src/documents/AuxiliarySchemaForPreferencesFramework.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ An auxiliary schema must contain some required properties, described below. In a
* `template`
* the path to the template for the prefs editor itself
* provided the term name defined in the `terms` block for the path to the directory containing the html templates is `templatePrefix`, use `%templatePrefix` to reference the prefix specified by `templatePrefix` as part of the path

### Preference block properties ###

Preference blocks can be given any property name, so long as the name is unique within the schema. Preference blocks will have the following properties:
Expand Down Expand Up @@ -76,18 +76,18 @@ For detailed information about how to work with composite panels, see [Composite
// The author of the auxiliary schema will provide the namespace, which will be used
//for the component to call to initialize the constructed grades.
"namespace": "fluid.prefs.constructed",

// The common terms to use in "template" and "message" properties in "panels" elements
"terms": {
// The template defined in "panels" element will take precedence over this definition.
"templatePrefix": "../../../framework/preferences/html/",
"templatePrefix": "../../../framework/preferences/html",
// The message defined in "panels" element will take precedence over this definition.
"messagePrefix": "../../../framework/preferences/messages/",
"messagePrefix": "../../../framework/preferences/messages",
},

// The path to the preferences editor own template (e.g. the separated panel prefs editor template)
"template": "%templatePrefix/SeparatedPanelPrefsEditor.html",

// The path to the preferences editor own message file (e.g. the separated panel prefs editor message file)
"message": "%messagePrefix/prefsEditor.json",

Expand Down
8 changes: 4 additions & 4 deletions src/documents/Builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ var myBuilder = fluid.prefs.builder({
// override the paths in the starter grade
auxiliarySchema: {
"terms": {
"templatePrefix": "../../../framework/preferences/html/",
"messagePrefix": "../../../framework/preferences/messages/"
"templatePrefix": "../../../framework/preferences/html",
"messagePrefix": "../../../framework/preferences/messages"
}
}

Expand Down Expand Up @@ -241,8 +241,8 @@ fluid.defaults("my.prefs.editor.aux", {
auxiliarySchema: {
namespace: "my.prefs.editor",
terms: {
templatePrefix: "templates/",
messagePrefix: "messages/"
templatePrefix: "templates",
messagePrefix: "messages"
},
template: "%templatePrefix/MyEditorTemplate.html",
message: "%messagePrefix/MyEditorStrings.html",
Expand Down
4 changes: 2 additions & 2 deletions src/documents/LocalizationInThePreferencesFramework.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ Message Bundles can be specified through the [auxiliary schema](AuxiliarySchemaF
{
"namespace": "fluid.prefs.constructed",
"terms": {
"templatePrefix": "../../../framework/preferences/html/",
"messagePrefix": "../../../framework/preferences/messages/"
"templatePrefix": "../../../framework/preferences/html",
"messagePrefix": "../../../framework/preferences/messages"
},
"template": "%templatePrefix/SeparatedPanelPrefsEditor.html",
"message": "%messagePrefix/prefsEditor.json", // Message Bundle for the preference editor itself
Expand Down
8 changes: 4 additions & 4 deletions src/documents/UserInterfaceOptionsAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ fluid.uiOptions.prefsEditor("#myContainer", {
<pre>
<code>
{
templatePrefix: "../../framework/preferences/html/",
messagePrefix: "../../framework/preferences/messages/"
templatePrefix: "../../framework/preferences/html",
messagePrefix: "../../framework/preferences/messages"
}
</code>
</pre>
Expand All @@ -230,8 +230,8 @@ fluid.uiOptions.prefsEditor("#myContainer", {
<code>
fluid.uiOptions.prefsEditor("#myContainer", {
terms: {
templatePrefix: "../infusion/framework/preferences/html/",
messagePrefix: "../infusion/framework/preferences/messages/"
templatePrefix: "../infusion/framework/preferences/html",
messagePrefix: "../infusion/framework/preferences/messages"
}
});
</code>
Expand Down
14 changes: 7 additions & 7 deletions src/layouts/default.html.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<script type="text/javascript" src="{{{relativeUrl '/lib/infusion/infusion-uio.js' document.url}}}"></script>
<script type="text/javascript" src="{{{relativeUrl '/js/infusion-docs.js' document.url}}}"></script>

</head>
<body class="infusion-docs fl-theme-prefsEditor-default">

Expand Down Expand Up @@ -99,16 +99,16 @@
<div class="infusion-docs-articleContainer">

<div class="flc-toc-tocContainer infusion-docs-toc"> </div>

<h1>{{document.title}}</h1>

<p class="infusion-docs-githubLink"><a href="{{githubLocation}}" target="_blank">Edit on GitHub</a></p>

{{#if document.noteRendererChangesPost15}}
<div class="infusion-docs-note"><strong>Note:</strong> The renderer will undergo significant changes post Infusion 1.5
</div>
{{/if}}

<div class="infusion-docs-articleBody">
{{{rewriteMdLinks content}}}
</div>
Expand All @@ -120,7 +120,7 @@
</footer>

</article>

</div>


Expand All @@ -130,5 +130,5 @@
</script>

</body>

</html>

0 comments on commit 079fbb6

Please sign in to comment.