Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

File defaults by type

No security coverage Under active development

This module lets you set default files for different file types in your file fields. When a user adds a file, they can choose from a list of predefined "types" (like "Text" or "Spreadsheet"), and a default template file will be automatically attached for them to start with.

The File Defaults by Type module enhances file field management by allowing administrators to define multiple "types", identified by a label and with a default file assigned.

This module is especially useful when used together with collaborative tools such as Collabora Online. Default "template" files can be defined for each type (e.g "Text", "Spreadsheet") and used as starting point for collaborative editing.

Features

  • Type definition: for each file field, allows to define a series of "types", identified with a label. Each type requires a default file to be attached.
  • Default file widget: presents the user with a dropdown containing the types defined for that field instance. The user can choose one of them and attach it to the field.
  • UI module: file_defaults_by_type_ui enhances the configuration experience through a page where users can set or replace files.

Upcoming development / ideas

  • Add a new widget or modify the default file one so that a user can upload a custom fil, in addition to choosing one of the defaults provided.
  • Allow to rename the default file being attached.

Supporting this Module

European Commission and European Union Institutions, Agencies and Bodies

Ask your assistant about File defaults by type

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha4 Pre-release 10–11 May 23, 2025
1.0.0-alpha3 Pre-release 10 Nov 22, 2024
1.x-dev Dev 10–11 Oct 24, 2024
1.0.0-alpha2 Pre-release 10 Oct 24, 2024
1.0.0-alpha1 Pre-release 10 Oct 9, 2024