Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Word Serialization

No security coverage Obsolete 83 sites

This module adds support for the DOCX format to Drupal's data serialization capabilities. It allows Drupal to export data in DOCX format, for example, through Views with a "Word Export" display, and can utilize custom templates for formatting.

This module provides a Word encoder for the Drupal Serialization API. This
enables the DOCX format to be used for data output (and potentially input,
eventually).

For example:

  • Views can output DOCX data via a 'Word Export' display in a View.
  • Leverages phpword Templates processing. You can upload an OOXML document template with included search-patterns (macros) which can be replaced by any value you wish. Only single-line values can be replaced. The search-pattern model is: ${search-pattern}, for example: ${your-field-name}
  • Module developers can leverage DOCX as a format when using the
    Serialization API.

Installation

The preferred installation method is to
[use Composer](https://www.drupal.org/docs/develop/using-composer/manage-dependencies).
* Enable the `doc_serialization` module. The serialization module should automatically be enabled too.

Creating a view with a DOC display

1. Create a new view
2. Add a *Word Export* display.
3. Select 'docx' for the accepted request formats under
`Format -> Word export -> Settings`.
4. Add a path, and optionally, a filename (pattern).
5. Upload the template file with search patterns same as views field names.
6. Add desired fields to the view.
7. The view will produce the new doc file with macros replaced by field values.

Ask your assistant about Word Serialization

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
3
Tracked since
Jun 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
4.0.x-dev Dev 9–10 Jun 9, 2023
4.0.0-beta2 Pre-release 9–10 Jun 9, 2023
4.0.0-beta1 Pre-release 9–10 Jun 6, 2023