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:

[W2.*] Missing Print view for personal facts 1 month 2 days ago #1

  • GunnarO
  • GunnarO's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 46
A print view for facts is missing.i made an simple reduced css-hack to hide unneeded blocks in the print and hide the underlines. Printed as PDF (over browser-internal print) the links are still clickable.
@media print {
#sidebar, 
.wt-header-container,
.wt-page-menu,
.img-thumbnail,
.nav,
.wt-footers,
.wt-facts-table tbody tr:last-child,
.wt-facts-tab table:first-child,
.card,
.editfacts {display:none;}

a:link{text-decoration: none;}

}

as insert in "css and js". Maybe as module or modified theme should it be more elegant.

interesting is that elements i hide also has an "d-print-none"-class that stays unused.

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

Last edit: by GunnarO.

[W2.*] Missing Print view for personal facts 1 month 1 day ago #2

  • hermann
  • hermann's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 295
I like it! Thank you for sharing!
webtrees 2.0.16 (all available custom modules installed, php 7.4.15, MySQL 5.6) @ ahnen.hartenthaler.eu/
and webtrees 1.7.18 (many custom modules) @ ahnen1.hartenthaler.eu/

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

[W2.*] Missing Print view for personal facts 1 month 1 day ago #3

Realy interesting.

Just two (three) small questions/problems:

1. If the person has a thumbail - Iwould like to print it.
2. there is always the text "Add a media object" on the print (left from the thumbnail).
3. how cann I adjust the width/position of the facts-table?

Ladislav
webtrees 2.0.16 + ⚶ Vesta modules (from cissee.de/)
on PHP Version 7.3.14

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

[W2.*] Missing Print view for personal facts 1 month 1 day ago #4

  • Sir Peter
  • Sir Peter's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 154

If the person has a thumbail - Iwould like to print it.

Remove
.img-thumbnail,
from above CSS.
Peter

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

[W2.*] Missing Print view for personal facts 4 weeks 1 day ago #5

@GunnarO

Thanks for your work. I took some of your code and added it to the Custom CSS module.
Rob
www.skatekey.net ( webtrees beta GitHub)
PHP 7.4.14, MySql 7.4.14, Apache 2.4.43,
Hosted at tigertech.net

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

Last edit: by makitso.
  • Page:
  • 1
Powered by Kunena Forum