Advertising sustains the DA. Ads are hidden for members. Join today

Contributed modules for Drupal 7

Markdown Exporter

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

INTRODUCTION

The purpose of this module is to export Drupal 7 nodes in the form of Markdown files to facilitate the JAMStack based architecture of decoupling of Drupal in both online and offline(via Drush command) mode

CONFIGURATION

  • Go to Settings and change desired values
  • For "Content Types & Fields JSON" go to Content-type settings
  • Content Types & Fields JSON: Content types & fields to be exported can be provided in the form of JSON string, default value provided in the configuration
  • Markdown files directory: name of the directory(under files folder) to store generated markdown files. The module can create the directory if not exists

DRUSH COMMANDS

- drush mde: export all the nodes
- drush mde page: export all nodes of "page" content type
- drush mde page article: export all the nodes of "page" & "article" content types

Guide maintainers

aniruddhab's picture