Search found 10 matches

by LukeWCS
17 Mar 2021, 13:50
Forum: General Discussion
Topic: Custom fields at the beginning
Replies: 6
Views: 5556

Re: Custom fields at the beginning

cas wrote: 16 Mar 2021, 13:49 You can always connect to a post here, no problem :mrgreen:
See here: https://www.mantisbt.org/forums/viewtop ... 15&t=27408
by LukeWCS
17 Mar 2021, 13:46
Forum: General Plugin Discussion
Topic: Custom Fields To Top
Replies: 1
Views: 13607

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...
by LukeWCS
16 Mar 2021, 13:17
Forum: General Plugin Discussion
Topic: Pass variables from PHP to JS
Replies: 3
Views: 18622

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...
by LukeWCS
16 Mar 2021, 13:07
Forum: General Discussion
Topic: Custom fields at the beginning
Replies: 6
Views: 5556

Re: Custom fields at the beginning

cas wrote: 15 Mar 2021, 11:50 so will you share this plugin?
Basically nothing speaks against it, but several steps are necessary if I see these instructions. Quite a lot of effort.
by LukeWCS
14 Mar 2021, 18:19
Forum: General Discussion
Topic: Custom fields at the beginning
Replies: 6
Views: 5556

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:
PicPick_2021-03-14_19-11-26_.png
PicPick_2021-03-14_19-11-26_.png (69.62 KiB) Viewed 5504 times
Update page:
PicPick_2021-03-14_19-16-23_.png
PicPick_2021-03-14_19-16-23_.png (90.91 KiB) Viewed 5504 times
Config module:
PicPick_2021-03-14_19-12-23.png
PicPick_2021-03-14_19-12-23.png (59.12 KiB) Viewed 5504 times
by LukeWCS
14 Mar 2021, 17:57
Forum: General Plugin Discussion
Topic: Pass variables from PHP to JS
Replies: 3
Views: 18622

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...
by LukeWCS
12 Mar 2021, 11:06
Forum: General Plugin Discussion
Topic: Pass variables from PHP to JS
Replies: 3
Views: 18622

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...
by LukeWCS
12 Mar 2021, 10:49
Forum: General Plugin Discussion
Topic: HowTo: Create a Plugin in 5 steps
Replies: 3
Views: 33797

Re: HowTo: Create a Plugin in 5 steps

Thanks for this HowTo, it helped me a lot to create my first plugin. :)
by LukeWCS
12 Mar 2021, 10:47
Forum: General Discussion
Topic: Custom fields at the beginning
Replies: 6
Views: 5556

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...
by LukeWCS
11 Mar 2021, 13:46
Forum: General Discussion
Topic: Custom fields at the beginning
Replies: 6
Views: 5556

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...