Add enhancement for node_type on node.add

Created on 21 April 2023, over 1 year ago
Updated 8 March 2024, 9 months ago

Problem/Motivation

Want to be able to show a tour on the node.add (as well as the entity.node.edit_form) for a particular node type.

Steps to reproduce

In the selector, add

node.add
- bundle:some_node_type

but the tour does not appear on the node-add page for that content type.

Proposed resolution

Add the following to the function tour_enhancements_page_bottom (right after the check for $node):

      if ( ( $node_type = $route_match->getParameter('node_type') ) && ( $node_type instanceof \Drupal\node\NodeTypeInterface ) ) {
        $params['bundle'] = $node_type->get('type');
      }

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada sdsheridan Toronto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024