Problem/Motivation
It would be super helpful to be able add a custom template to the theme to override the markup.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | use_template-3207090-4.patch | 1.88 KB | liquidcms |
Comments
Comment #2
kevinquillen commentedThis looks to be not possible given how it is implemented as inline_templates. Can this be redone into theme hooks?
Comment #3
liquidcms commentedYes, interested in this as well and surprised this isnt already a template. I went looking and saw pages.inc has a template preprocess function and there is a template file: sitewide-alert.html.twig; but neither of these seem to have anything to do with the actual alert. And then template states: * This template is used when viewing Sitewide Alert pages. But what is that? There are no alert pages. And i don't think the page.inc file is ever loaded.
Comment #4
liquidcms commentedThis isn't perfect as some of the markup for the alert message is hard coded in js. There is likely a templating function to use for that.
This does make use of the already existing twig template though (looks like it was WIP?) and also passes in entity variables such as extra fields or properties like ID.
Comment #5
chrissnyderThis will also allow us to implement templates per alert type.
Comment #6
chrissnyder