New template variable TMPL_VAR DATABASEFOLDER

Discuss New Feature Requests and Enhancements to MMEX

Moderator: Renato

pleskava
New User
Posts: 2
Joined: Wed Jan 17, 2024 7:37 pm
Are you a spam bot?: No

New template variable TMPL_VAR DATABASEFOLDER

Post by pleskava »

Hello everyone.
For the reports I use several additional JS files. The report template engine includes script files either by absolute path or from the res folder. But for the new Flatpak version (1.7.0) the absolute path is very complex and will be changed in the next installation. For example, this is the absolute path to the res folder on my desktop

Code: Select all

/var/lib/flatpak/app/org.moneymanagerex.MMEX/x86_64/stable/74855e69d6e88cba4240daf947206442b7f57757d6342e4e636d43e9208d8bbe/files/share/mmex/res/
Template report processor allow to use variables, but there is only one variable with absolute path - ATTACHMENTSFOLDER. Now I created this folder and put my files there.

Code: Select all

<head>
    <meta charset="UTF-8" />
    <meta http - equiv = "Content-Type" content = "text/html" />
    <title><TMPL_VAR REPORTNAME></title>
    <link href="master.css" rel="stylesheet">
    <script src="<TMPL_VAR ATTACHMENTSFOLDER>string.polyfill.js"></script>
    <script src="ChartNew.js"></script>
    <script src="<TMPL_VAR ATTACHMENTSFOLDER>ChartNew_format.js"></script>
</head>
But I think the best thing to do is to add a DATABASEFOLDER variable and put those files in this folder.
Or can anyone suggest a better solution?
User avatar
Renato
MVP User
Posts: 674
Joined: Mon Apr 25, 2011 7:36 pm
Are you a spam bot?: No
Location: near Zurich

Re: New template variable TMPL_VAR DATABASEFOLDER

Post by Renato »

I would suggest having this discussion on github.
https://github.com/moneymanagerex/money ... +is%3Aopen
Renato Forum Administrator
pleskava
New User
Posts: 2
Joined: Wed Jan 17, 2024 7:37 pm
Are you a spam bot?: No

Re: New template variable TMPL_VAR DATABASEFOLDER

Post by pleskava »