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.
  • Page:
  • 1

TOPIC:

Correct way to generate/include own report 1 year 6 months ago #1

  • baumbuwegen
  • baumbuwegen's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 17
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).
Thank You all for cooperation ...
Uwe

----
Ignorance is no excuse.
Communication can fill gaps.

Please Log in or Create an account to join the conversation.

Correct way to generate/include own report 1 year 6 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13709
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

Please Log in or Create an account to join the conversation.

Correct way to generate/include own report 1 year 6 months ago #3

  • baumbuwegen
  • baumbuwegen's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 17
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)
Thank You all for cooperation ...
Uwe

----
Ignorance is no excuse.
Communication can fill gaps.

Please Log in or Create an account to join the conversation.

Correct way to generate/include own report 1 year 6 months ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13709
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum