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:

Diaporama 4 months 2 weeks ago #1

  • phicome
  • phicome's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 23
Bonjour,

J'ai de très nombreux médias publiés dans ma généalogie. Ils sont ventilés dans plusieurs sous-dossiers du dossier "media". Comment modifier le module "Diaporama" pour qu'il n'affiche que les médias d'un seul de ces sous-dossiers ? Est-ce possible ?

Merci

Au passage, je n'ai aucun problème avec la version 2.03. Juste des modifications personnelles.


I have many media published in my genealogy. They are broken down into several sub-folders of the "media" folder. How to modify the "Slideshow" module so that it only displays the media of one of these sub-folders? Is it possible ?

Thank you

By the way, I have no problem with version 2.03. Just personal modifications.
webtrees 2.0.7
php 7.4

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

Diaporama 4 months 2 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13364
Quick answer:

Modify the code here: github.com/fisharebest/webtrees/blob/2.0...eShowModule.php#L116

Add a line like this (where "foo" is the name of your chosen folder).

->where('multimedia_file_refn', 'LIKE', 'foo/%')

You will need to add this line every time you upgrade.
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.

[SOLVED] Diaporama 4 months 1 week ago #3

  • phicome
  • phicome's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 23
Problem solved.

Fonctionne parfaitement. Merci beaucoup

Works perfectly. thank you so much
webtrees 2.0.7
php 7.4

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

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