Problem/Motivation

wxt 4.4.2+ and 4.5.x provides a new footer CDN option, but what value to use?

see screenshot:
footer cdn

Remaining tasks

DIscover what cdn values are possible and where to find them?

CommentFileSizeAuthor
#5 footer_cdn.jpg56.65 KBjoseph.olstad
footer_cdn.jpg45.33 KBjoseph.olstad

Comments

joseph.olstad created an issue. See original summary.

jamesyao’s picture

Hi @joseph.olstad i have the same question about this value.

joseph.olstad’s picture

joseph.olstad’s picture

Those two links didn't have any CDN values?

joseph.olstad’s picture

Issue summary: View changes
StatusFileSize
new56.65 KB
smulvih2’s picture

Canada.ca doesn't supply a CDN for the footer, the only one I know about is StatsCan, but their footer links are slightly modified and do not align with Canada.ca. The footer CDN option has been around for a while now, I believe it was implemented when WxT was on D8.

joseph.olstad’s picture

ok, hmm, confusing, maybe I was asking the wrong question, there was some new functionality mentioned here:

#3335298: Update GCWeb footer structure with new global footer design

For some reason I thought it was related to a cdn that brought this in?

Isn't this to replace the big Menu at the top? IF so, which cdn if any to use?

footer menu to replace mega menu

joseph.olstad’s picture

maybe there's a content import script that needs to run for new menu links? Is this intended to be menus from our Drupal CMS? Or brought in from elsewhere?

smulvih2’s picture

Status: Active » Closed (works as designed)

The new footer menu links are brought in via migration (gcweb_menu_link, gcweb_menu_link_translation). Only the main menu has a CDN option for Canada.ca. The new footer menus and blocks are brought in via drupal/wxt_bootstrap, and new migration config from wxt_ext_migration module.

joseph.olstad’s picture

@smulvih2 , is this included in 4.4.2? I'm going through the migrations

I found this one:

/admin/structure/migrate/manage/gcweb/migrations/gcweb_menu_link/execute

rolled it back, re-imported, gave the same old links.

I am still searching for the new links.

deleted our twig for this so the links show up and disappear when I rollback and re-import the above migration. The only one that I see that looks correct is the gcweb_menu_link migration...?

smulvih2’s picture

@joseph, since the migration scripts are actually config, you will need to import the new scripts or what I did was uninstall the wxt_ext_migration module, then enable it again to get the new scripts. This will throw error on install due to config already existing (not using enforced key), so just drush cdel the migration configs it complains about and you should have the new links ready to import.

smulvih2’s picture

I have added the enforced key to all migration scripts, so in the future the error on install for wxt_ext_migration will not occur.

joseph.olstad’s picture

ok makes sense, so it's basically working for vanilla installs but since there's no hook updates we just need to uninstall and re-install wxt_ext_migrations and delete the migration configs it complains about.

smulvih2’s picture

Yes exactly. Another option is to import the migration configs via drush or Config Sync Import UI, just need the two update scripts (gcweb_menu_link, gcweb_menu_link_translation).