Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

How to embed statics in my page FOOTER 1 week 5 days ago #1

  • JLL
  • JLL's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • New user Webtrees 2.0.16
  • Posts: 17
Hello !
In the custom FOOTER module, can I make # getAllTagsTable # work in some way? Not knowing programming, I don't know if this custom module supports HTML?
thank you in advance for your help
JLUC

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

How to embed statics in my page FOOTER 1 week 5 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14715
> In the custom FOOTER module

I guess you mean this: github.com/webtrees/example-module-footer

> can I make # getAllTagsTable # work in some way?

Since the HTML is included in the code, you don't need the `#xxx#` placeholders - you can use the values directly.

Step 1 - create a statistics object for the tree. e.g.

$statistics = new Statistics($tree)

Step 2 - the placeholder names are the same as function names here. e.g.

$largest_family = $statistics->largestFamily(); // same as #largest_family#
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