Skip to content

slnsw/drupal-module-webform-node-element

Repository files navigation

NOTE: This is a fork of the Webform Node Element Drupal module to incorporate compatibility patches for Drupal 11.

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Maintainers

INTRODUCTION

Webform Node Element allows you to display content from your site as an element within a webform.

REQUIREMENTS

This module requires the following modules:

INSTALLATION

CONFIGURATION

When enabled this module provides a new type of element, 'Node', to be added to a webform. Once you add an element of type 'Node' you can enter the nid of the node that you want to display. When you view the webform the node will be displayed using the webform_element display mode if there is one, otherwise it will use the default display mode for the entity type.

To dynamically set the nid or the display mode, an event is dispatched prior to rendering the element. Subscribe to the

WebformNodeElementPreRender::PRERENDER

event, and call the

setNid
setDisplayMode

methods. See the webform_node_element_example module for a working example..

MAINTAINERS

Current maintainers:

About

Forked copy of Webform Node Element with patches applied.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages