0

I have a Drupal 9 website with an Opigno distribution.

Opigno LMS has the following structure to learning: Training > Courses > Modules > Activities (ex. Quiz, or a YouTube video). I have structured my website as follows: Each Training has many Modules. Each Module has many Activities.

Opigno LMS has a feature called the Documents library. This allows the administrator to “add files” to a Training. This is likely to be reference materials for students.

  • The Documents library utilizes a Drupal module called Taxonomy File Tree (TFT).

  • The Admin can alter what “add a file” looks like by:

  1. Go to “Structure” > “Media Types” > “File” > “Manage Fields”
  2. Click “Add field” for a new, desired input field when “adding files”
  3. Click on “Manage form display”
  4. Edit the visible fields to insure your new field is added to the visible form

This works effectively, but there is one last step that is missing:

  • When one tries to alter what the “Manage Display” looks like, we see that everything is either “Disabled” or “- Hidden -” clearly indicating that the display of the files that are added are being controlled elsewhere. I tested this by attempting to enable the fields in the “Manage Display” section, only to see nothing was altered at all in the appearance of the files.
  1. “Manage Display” typically is what would be used to determine what the list of the files from the “Documents library” would look like; However, that is not the case here. I am unsure where the “Manage Display” is being overwritten.

**Any ideas of where to look or where this functionality exists? **

What am I trying to change:

  1. I want to remove file uploads and replace them with a Link to a file that is being hosted elsewhere.
  • This provides a much more seamless experience internally as our documents are updated regularly, but our links to the documents do not change. (prevents uploading new documents each time there is a minor change)
  • I am able to add the Link using “Add field” and “Manage form display”; Additionally, When clicking “add file” using the native “Documents library” it does successfully add the file. I am not able to see the Links I just added in the displayed “Documents library” files (“Manage Display” issue described above)
  • I am able to find all of the uploaded files using “Documents library” (.pdf, image, etc.) “Content” > “Media” > “Files”
  • *I am able to find all the Links added using “Documents library” (Link) “Content” > “Media”
  • The file path to these Links does not show up here.

What I know:

  • The contrib module opigno_group_manager (web/modules/contrib/opigno_group_manager) definitely communicates to the module tft (Taxonomy File Tree)

Tried looking in the opigno_group_manager code, but haven't been able to find the code that makes the change to the view.

  • Maybe custom template files are being used. Turing on [twig debug mode](https://www.drupal.org/docs/theming-drupal/twig-in-drupal/debugging-twig-templates#s-enable-debugging) may help you track down any custom template files – 2pha Jan 10 '23 at 22:12

0 Answers0