Allow 1.x version to render anywhere on page (Patch attached)

Created on 20 November 2021, about 3 years ago
Updated 22 May 2023, over 1 year ago

Problem/Motivation

I needed to place Site Alerts on the page where I needed them.

Steps to reproduce

Patch attached.

Proposed resolution

Optionally, don't automatically add <div id="sitewide-alert"></div> tag below. Dev will add that to twig where needed.

Remaining tasks

None? Although the JS changes were trivial enough I made the changes to both the init.es6.js *and* init.js files, because I couldn't, per DO NOT EDIT THIS FILE. * See the following change record for more information β†’ working, instead I got an error:

SyntaxError: init.es6.js: Unexpected token (100:8)

Likely because it's not really an es6 file, it's a React HTML-in-JS thing.

User interface changes

Add config option "Use Custom HTML Placement".

API changes

None.

Data model changes

None.

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Todd Zebert Los Angeles, CA

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.71.5 2024