Years in sidebar missing month links #285
-
I've been running a weewx weather station for about 14 years (not long after weewx was born). My weewx server and website have been neglected for the past couple of years, so I put in some work to get everything up-to-date, and even implemented weewx-wdc for a fresh new experience. Setting up weewx-wdc took a lot of tinkering to get it the way I wanted it. Now that I'm done, I've noticed a problem that I haven't been able to figure out (yet): in the side navigation along the left side, beneath each year listed, there should be links to each month for that year (the The Years item on every page does list all of the years, though. And on every
I'm pretty sure the I have run My next step is to review the source of the skin to learn how the templates are generated so I can understand the logic that determines whether to output a menu item, but that'll take a little time and effort. In the meantime, I figured I'd ask about this in case someone else with deeper knowledge of this skin might be able to share some direction. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I found where the month links are generated: weewx-wdc/skins/weewx-wdc/includes/ui-shell.inc Lines 350 to 362 in 8006446 ...and it appears that So now we know why the links aren't being generated, now to find out why that variable is empty on some pages but not others... |
Beta Was this translation helpful? Give feedback.
-
Okay, figured it out: it's because I'm stupid. Early on in the implementation of weewx-wdc, I moved the That explains why those I put those sections back in the order they were originally, and now every year has a month link on all pages. |
Beta Was this translation helpful? Give feedback.
Okay, figured it out: it's because I'm stupid.
Early on in the implementation of weewx-wdc, I moved the
[[ToDate]]
section above the[[SummaryBy____]]
sections so that I could play with the Today page without having to wait an hour for all themonth-%Y-%m.html
andyear-%Y.html
pages to be generated (10 years of data takes a while!).That explains why those
[[ToDate]]
templates didn't get the month links, but the[[SummaryByMonth]]
and[[SummaryByYear]]
templates did. 🤦🏻♂️I put those sections back in the order they were originally, and now every year has a month link on all pages.