Bienvenue, Invité
Nom d'utilisateur : Mot de passe :
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

SUJET :

[W2.*] Missing Print view for personal facts il y a 2 mois 1 semaine #1

  • GunnarO
  • Portrait de GunnarO Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
  • Messages : 50
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.

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par GunnarO.

[W2.*] Missing Print view for personal facts il y a 2 mois 1 semaine #2

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/

Connexion ou Créer un compte pour participer à la conversation.

[W2.*] Missing Print view for personal facts il y a 2 mois 1 semaine #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

Connexion ou Créer un compte pour participer à la conversation.

[W2.*] Missing Print view for personal facts il y a 2 mois 1 semaine #4

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

Remove
.img-thumbnail,
from above CSS.
Peter

Connexion ou Créer un compte pour participer à la conversation.

[W2.*] Missing Print view for personal facts il y a 2 mois 1 semaine #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

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par makitso.
  • Page :
  • 1
Propulsé par Kunena