Problem/Motivation
Add support for Bootstrap 5.
Proposed resolution
Different templates for different version of BS.
User interface changes
Add '5' to setting.
API changes
None.
Data model changes
None.
Issue fork bootstrap_site_alert-3216063
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ckngSee merge request.
Comment #5
labboy0276 commentedThanks, I pushed up and tagged a new release for 8.x-2.x.
I will change the issue to remind someone to do it for 8.x-1.x as well.
Comment #6
jacobbell84 commentedIs there supposed to be an updated view to go along with this? We updated one of our sites from 2.0-beta7 to beta9 and it's throwing the following error on page loads (if you have an active alert):
Error: Call to a member function __toString() on null in bootstrap_site_alert_preprocess_views_view_fields() (line 134 of modules\contrib\bootstrap_site_alert\bootstrap_site_alert.module).That area of code is controlling the new template logic
It seems like it's looking for a "rendered_entity" field that doesn't exist on our site. I checked the module's view config yaml and didn't notice any changes there.
Comment #8
labboy0276 commented@jacobbell84 thanks for bringing this to my attention. I just pushed up beta10 that fixes the critical issue.
Comment #9
ckngRight, because on my end I changed to use rendered entity.
Comment #10
jacobbell84 commentedGreat, thank you for the quick turnaround!
Comment #11
labboy0276 commentedStill needs to have the code applied to the 8.x-1.x version