Hi fredcampagna,
Thanks for the questions. I always appreciate questions and feedback from those using the plugin.
The warning text is truncated simply because that’s what’s available in the NWS feed. It may be possible to include the full warning text, but I’ll have to do some research on it. For now the NWS Alerts plugin is only able to display what is available in the NWS feed.
As for multiple locations, the current functionality is based on the typical weather forecast user experience where only one location is selected and shown at a time. However, I think the NWS Alerts plugin fits a different use case and needing to display multiple locations (especially counties) could be quite useful. Quite honestly this isn’t something that I had considered until now. How do you envision this functioning? I could see all of the alerts being combined into one seamless list (exactly as they’re displayed now), or each location’s alerts being a different slide within a slider. Another option would be to have a tabbed style layout with each location’s alerts being in a different tab. Those are just a couple ideas off the top of my head.
laubsterboy
Hi,
I was hoping that it would just be in a list so that each state or county could be hovered over. For instance, the widget would look something like this
State Weather Alerts
Rhode Island
Massachusetts
Connecticut
This would prevent having to make three separate widgets and take up more space in the sidebar.
Also, what do you think about possibly hiding the content if there are no active alerts for the area? I think this would be a great feature, particularly for the top banner.
Thanks,
Fred
Hi Fred,
I think nested lists, as you’ve suggested, makes sense and would provide the structure for those who want to add their own custom CSS/JS to create custom layouts such as sliders or tabs. This would require some fairly significant changes to how the plugin currently works but is certainly possible. I’ll have to mull over how this can best be implemented, but I’ll add it to the plugin roadmap for a future release.
As for hiding the content when there are no active alerts: this was actually a part of the plugin in previous releases, however when refactoring from 1.2 to 1.3 it was broken. It’s a simple fix, and will be brought back with the next release. What I’ve been doing is adding a class, ‘nws-alerts-no-entries’, to the article wrapper tag and for the top banner/alerts-bar the plugin CSS hides articles with that class. This makes the plugin flexible and allows the user to decide what to show or not show by overriding the default plugin CSS with their theme CSS.
Thanks,
John