- Assegnazione di linkIdTemplate anche per la "Pagina di Default", in modo che posso da "Templates" cambiare le impostazioni.

This commit is contained in:
Surya Paolo
2025-05-14 17:04:18 +02:00
parent fc8a954eb0
commit f30cbf072a
13 changed files with 1508 additions and 1251 deletions

View File

@@ -7606,11 +7606,13 @@ export const tools = {
}
}
},
getFullFileNameByImageFile(table: string, imagefile: string) {
getFullFileNameByImageFile(table: string, imagefile: string, id: string) {
// console.log('arrimage', arrimage)
if (shared_consts.TABLES_IMAGEFILE_SINGOLO.includes(table)) {
return this.getDirUpload() + `products/` + imagefile;
} else if (table === 'catalogs') {
return this.getDirUpload() + `catalogs/` + id + '/' + imagefile;
}
return imagefile;
},