See here: https://www.mantisbt.org/forums/viewtop ... 15&t=27408
Search found 10 matches
- 17 Mar 2021, 13:50
- Forum: General Discussion
- Topic: Custom fields at the beginning
- Replies: 6
- Views: 5573
- 17 Mar 2021, 13:46
- Forum: General Plugin Discussion
- Topic: Custom Fields To Top
- Replies: 1
- Views: 13673
Custom Fields To Top
Related to: Custom fields at the beginning Description Moves selected custom fields to the top of the Report Issue form and the Update Issue form. For both forms it can be specified separately which user-defined fields should be positioned at the top of the form and also in which order. This gives y...
- 16 Mar 2021, 13:17
- Forum: General Plugin Discussion
- Topic: Pass variables from PHP to JS
- Replies: 3
- Views: 18679
Re: Pass variables from PHP to JS
@atrol I had a mistake in reasoning. I took a closer look at it and now it is clear to me what you meant. For this, however, I would need another PHP script with which I can then dynamically generate the JS script. In principle no problem, but it is much more effort than the "HTML data- * Attri...
- 16 Mar 2021, 13:07
- Forum: General Discussion
- Topic: Custom fields at the beginning
- Replies: 6
- Views: 5573
Re: Custom fields at the beginning
Basically nothing speaks against it, but several steps are necessary if I see these instructions. Quite a lot of effort.
- 14 Mar 2021, 18:19
- Forum: General Discussion
- Topic: Custom fields at the beginning
- Replies: 6
- Views: 5573
Re: Custom fields at the beginning
Small feedback: In the meantime, my JS / jQuery script has become a full-fledged plugin, as I imagined, including a config module.
Report page: Update page: Config module:
Report page: Update page: Config module:
- 14 Mar 2021, 17:57
- Forum: General Plugin Discussion
- Topic: Pass variables from PHP to JS
- Replies: 3
- Views: 18679
Re: Pass variables from PHP to JS
Hi atrol Thank you for your answer and your hint. With these two files alone, I didn't understand how it worked. It wasn't until I also included html_api.php that I realized how it works, I think. If I understand correctly, a JS script is included, which was generated by PHP. But in that case I woul...
- 12 Mar 2021, 11:06
- Forum: General Plugin Discussion
- Topic: Pass variables from PHP to JS
- Replies: 3
- Views: 18679
Pass variables from PHP to JS
Normally I would solve this in the PHP script as follows: echo '<script>'; echo $config_vars; echo '</script>'; echo '<script type="text/javascript" src="{external_script}"></script>'; However, this does not seem to be allowed with Mantis, since the developer console of the brows...
- 12 Mar 2021, 10:49
- Forum: General Plugin Discussion
- Topic: HowTo: Create a Plugin in 5 steps
- Replies: 3
- Views: 33848
Re: HowTo: Create a Plugin in 5 steps
Thanks for this HowTo, it helped me a lot to create my first plugin.
- 12 Mar 2021, 10:47
- Forum: General Discussion
- Topic: Custom fields at the beginning
- Replies: 6
- Views: 5573
Re: Custom fields at the beginning
I've been able to solve the problem in the meantime. I missed 2 things: On the one hand, there is another table in the table of the form that was responsible for several problems. Since I created the system profile directly in the user profile and defined it as the standard, I didn't even think abou...
- 11 Mar 2021, 13:46
- Forum: General Discussion
- Topic: Custom fields at the beginning
- Replies: 6
- Views: 5573
Custom fields at the beginning
Hi I've been trying to find a solution to this problem for months. I want to have custom fields at the top of the bug report page. So far I have changed the bug_report_page.php file directly by moving the code for the custom fields to the top of the form. However, this has 2 disadvantages: 1. I have...