-
Notifications
You must be signed in to change notification settings - Fork 1
Drought nav does not update when edited in WP admin #126
Comments
Drought frontend build is pulling menu structure here https://github.com/cagov/drought.ca.gov/blob/main/src/templates/_data/menus.js#L4 |
Per Carter: https://github.com/cagov/drought.ca.gov/blob/main/src/templates/_data/menus.js |
Issue added... |
Slack thread --> https://cadotgov.slack.com/archives/C026VJB8Q1G/p1633117513186300 |
Looked at the code - the menus data needs to be connected to wordpress-to-github. This would be a good task for cross-training. (We will learn a lot in the process.) Assigning to @xjensen. |
@xjensen: We will go over the code in our code review next week. Maybe after that you can take a look to try to add an endpoint to the system. |
Unassigning @carterm - Carter - after our code review next week, can you help Jon succeed with this task? Are there things Jon should know about adding the menu? |
It was working before, as seen in the Development environment. I figured we were waiting for a real-world reason to test it out. If the config for the menu API URL is going into a different file (a good idea), then I'll need guidance on where it should go. |
depends on cagov/wordpress-to-github#50 |
Quick note. Menu work within the wordpress-to-github module has been completed. In short, this set of changes to wordpress-to-github will help trigger site rebuilds whenever a change is made to a menu within Wordpress. However, deploying this set of changes into live service is on-hold. We're working on putting processes in place around how we deploy changes to publishing systems. These processes will help us ensure everyone is properly notified and nothing breaks. Once the above wordpress-to-github changes are deployed, we'll need to do some minor Drought work here to consume the new menu data. That's the next step, stay tuned. |
Revisiting this. I need to add a new link to the top nav: Water-saving tips. Made the change in WP menu, but it's not live. How do we make it live? @xjensen |
Per Jon: "Just takes a few minutes. The menu updates are not pushed out to the site immediately; they need to be pulled when the wordpress-to-github polling service runs every few minutes." |
@chachasikes showed me how to update the navigation menu in the WP admin (Appearance > Menus). But while the changes I made appear to be saved in WP, they don't appear on the website. This is affecting our ability to link in a new page to the nav.
See Slack thread on this: https://cadotgov.slack.com/archives/C026VJB8Q1G/p1632877211125600
The text was updated successfully, but these errors were encountered: