Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

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.

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 Release date
4.0.x-dev Dev Jun 9, 2023
4.0.0-beta2 Pre-release Jun 9, 2023
4.0.0-beta1 Pre-release Jun 6, 2023