This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
# ADM-IMPORT Placeholder
|
||||
|
||||
NOTE: AyaNova 8's native data interchange format is JSON as JSON supports hiearchical structured data of the type AyaNova uses for nearly all it's object types.
|
||||
|
||||
For this reason, import ONLY supports JSON format files. Importing CSV files is *not* supported.
|
||||
|
||||
A 3rd party tool can be used to convert CSV files to JSON if necessary.
|
||||
https://duckduckgo.com/?t=ffab&q=csv+to+json&ia=web
|
||||
|
||||
|
||||
|
||||
|
||||
TODO: How to use the IMPORT feature, limitations, auto tag, etc
|
||||
|
||||
@@ -66,27 +66,28 @@ function ayRegisterHelpers() {
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("ayLogo", function (size) {
|
||||
if (this.ayServerMetaData) {
|
||||
|
||||
if (AYMETA.ayServerMetaData) {
|
||||
switch (size) {
|
||||
case "small":
|
||||
if (!this.ayServerMetaData.HasSmallLogo) {
|
||||
if (!AYMETA.ayServerMetaData.HasSmallLogo) {
|
||||
return "";
|
||||
}
|
||||
break;
|
||||
case "medium":
|
||||
if (!this.ayServerMetaData.HasMediumLogo) {
|
||||
if (!AYMETA.ayServerMetaData.HasMediumLogo) {
|
||||
return "";
|
||||
}
|
||||
break;
|
||||
case "large":
|
||||
if (!this.ayServerMetaData.HasLargeLogo) {
|
||||
if (!AYMETA.ayServerMetaData.HasLargeLogo) {
|
||||
return "";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
var url = `${Handlebars.escapeExpression(
|
||||
this.ayServerMetaData.ayApiUrl
|
||||
AYMETA.ayServerMetaData.ayApiUrl
|
||||
)}logo/${size}`;
|
||||
return new Handlebars.SafeString("<img src='" + url + "'/>");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user