# Open modal via link

# Open a single modal

You can open a modal through a link. Simply create a modal and a link. Example:

<a href="#" data-neti-modal-id="133fac36884d40cf8841078d53b50e81">Test</a>
1
  • "data-neti-modal-id" indicates the id of the modal. You can find this in the list view in the Shopware Admin under Content > Modal.

Image

SW 6.5 and html_sanitizer

As of Shopware 6.5, Shopware has integrated a so-called HTML sanitizer, so that only very limited text formatting and additional attributes are possible. In the standard version, the “data-neti-modal-id” cannot be used because it is filtered by Shopware after it has been entered and saved.

In the FAQs there are instructions on how the links can still be set.