Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.

TOPIC: Correct way to generate/include own report

Correct way to generate/include own report 5 months 3 weeks ago #1

  • baumbuwegen
  • baumbuwegen's Avatar
  • Offline
  • New
  • Posts: 16
Is there a place with descripton of steps that have to be taken for generating and including a custom (own) report?

If not - I ask for a short explanation here...

I assume, it could be a way to copy and customize existing module file(s) and integrate the new ones (how?) in framework.

So:
- which files have to be copied and customized?
- how to "announce" the new report

(The question is not: how to customize to achive new report conent, "only": where)

Are there differences for that between running version and upcoming 2.x?

I would appreciate writing new module for 1.7 and - of course - adopt it if nessessary for 2.x later on (when it will be stable).
The administrator has disabled public write access.

Correct way to generate/include own report 5 months 3 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11536
For webtrees 2.0, there is documentation for creating custom modules at github.com/fisharebest/webtrees/tree/master/modules_v4

There is also an example of a custom module to create a report.

You would just need to write the .XML file.
There is no documentation for the .XML format, but you can look at the existing reports for inspiration.

For webtrees 1.7, the XML format is the same. The module format is a little different - but you can copy one of the existing reports.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Correct way to generate/include own report 5 months 2 weeks ago #3

  • baumbuwegen
  • baumbuwegen's Avatar
  • Offline
  • New
  • Posts: 16
Thx.

As I understand, files for a new module should be placed in a new directory in:
  • 1.7: webtrees/modules_v3/
  • 2.x: webtrees/modules_v4/ or webtrees/data/modules/ (?)


What about a short summary at wiki.webtrees.net/en/Module_Development ?
(I found some phrases concerning 1.6 and a hint that there were changes in 1.7)
The administrator has disabled public write access.

Correct way to generate/include own report 5 months 2 weeks ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11536
Reports are perhaps the simplest modules to create.

Just use the example (2.0) or copy an existing report (1.7).
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Powered by Kunena Forum