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: [SOLVED] getHtmlUrl() replacement in version 2

getHtmlUrl() replacement in version 2 6 days 12 hours ago #1

  • vytux
  • vytux's Avatar
  • Offline
  • Senior
  • Posts: 455
In the V1 of webtrees individual record had a function to get the URL link to the individual record. It seems that it is missing from the Individual class in version 2

Is there a replacement that I missed or do I need to somehow construct this myself?
Vytautas

webtrees 1.7.9 (MODS: vytux_cousins, vytux_gallery3, vytux_pages, fancy_imagebar, fancy_treeview, Ancestral fan chart)
PHP 7.1.2, MySQL 5.7.17 x86_64 GPL, Nginx (mainline)
ged.vytux.com
Help translate Vytux Modules at translate.vytux.com/
The administrator has disabled public write access.

getHtmlUrl() replacement in version 2 6 days 10 hours ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10825
You need something like this:
e($individual->url())
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.

getHtmlUrl() replacement in version 2 6 days 7 hours ago #3

  • vytux
  • vytux's Avatar
  • Offline
  • Senior
  • Posts: 455
it works :-) however I coiuld not find the definition in individual.php so I'm guessing it's defined somewhere else? If so is there a way to list all available properties and methods of a class?
Vytautas

webtrees 1.7.9 (MODS: vytux_cousins, vytux_gallery3, vytux_pages, fancy_imagebar, fancy_treeview, Ancestral fan chart)
PHP 7.1.2, MySQL 5.7.17 x86_64 GPL, Nginx (mainline)
ged.vytux.com
Help translate Vytux Modules at translate.vytux.com/
The administrator has disabled public write access.

getHtmlUrl() replacement in version 2 6 days 7 hours ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10825
> I could not find the definition in individual.php

The Individual/Family/Source/Note/Media/Repository classes all extend a base class GedcomRecord.

The common properties and methods are in the GedcomRecord class.
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.

[SOLVED] getHtmlUrl() replacement in version 2 6 days 5 hours ago #5

  • vytux
  • vytux's Avatar
  • Offline
  • Senior
  • Posts: 455
Problem solved.
Vytautas

webtrees 1.7.9 (MODS: vytux_cousins, vytux_gallery3, vytux_pages, fancy_imagebar, fancy_treeview, Ancestral fan chart)
PHP 7.1.2, MySQL 5.7.17 x86_64 GPL, Nginx (mainline)
ged.vytux.com
Help translate Vytux Modules at translate.vytux.com/
The administrator has disabled public write access.
Powered by Kunena Forum