Arcadei...

This commit is contained in:
paoloar77
2022-10-27 11:22:58 +02:00
parent 8a7767e3a4
commit 663eb34cfa
5 changed files with 99 additions and 3 deletions

View File

@@ -25,9 +25,15 @@ const MyPageSchema = new Schema({
title: {
type: String,
},
subtitle: {
type: String,
},
icon: {
type: String,
},
iconsize: {
type: String,
},
order: {
type: Number,
default: 1000,
@@ -116,6 +122,9 @@ const MyPageSchema = new Schema({
infooter: {
type: Boolean,
},
extraclass: {
type: String,
},
});
MyPageSchema.statics.getFieldsForSearch = function () {
@@ -147,6 +156,7 @@ MyPageSchema.statics.findOnlyStruttRec = function (idapp) {
return MyPage.find(myfind, {
title: 1,
subtitle: 1,
icon: 1,
order: 1,
keywords: 1,
@@ -156,7 +166,9 @@ MyPageSchema.statics.findOnlyStruttRec = function (idapp) {
onlyif_logged: 1,
only_residenti: 1,
inmenu: 1,
submenu: 1
submenu: 1,
iconsize: 1,
extraclass: 1,
}, (err, arrrec) => {
return arrrec
});