Menu link open in modal

Created on 28 May 2021, about 3 years ago
Updated 3 February 2023, over 1 year ago

Problem/Motivation

Looks awesome! I would like to add a modal dialog to the menu item as follows:

<a class="use-ajax" data-dialog-type="modal" href="/node/1">Open in Modal</a>

So class = use-ajax

but where do I add the data-dialog-type in the yaml editor please?

attributes:
  class:
    label: ''
    description: ''
  target:
    label: ''
    description: ''
    options:
      _blank: 'New window (_blank)'
      _self: 'Same window (_self)'
    default_value: ''

Most appreciate any guidance 🌿

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Documentation

Created by

πŸ‡«πŸ‡·France Liliplanet Cannes

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024