- Issue created by @Kristen Pol
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
kristen pol โ credited gรกbor hojtsy โ .
- ๐บ๐ธUnited States phenaproxima Massachusetts
kristen pol โ credited phenaproxima โ .
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Adding credit for Slack discussions and testing and
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
I won't have time to continue working on this until mid-week due to some other commitments... but I understand the process now and have started adding default content in recipes within the starshot_demo theme. Examples:
๐ Create SDDS global header Active
โจ Create SDDS global footer config ActiveFor now, we can manually run the media recipe before the node recipe so that XB doesn't bomb on the alt text:
๐ Fix or workaround XB image alt bug that prevents saving SDDS components Active
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Dries will demonstrate using XB with its xb_page entities, which would be good to use here :) Support for editing articles with XB is a developer-only feature. I think copying the internal field structure of the article node to an xb_page will work from the exported YAML file without manually recreating it again :) Under the components property. https://github.com/phenaproxima/xb-demo/blob/main/recipes/xb_demo/conten... is a very simple such entity.
- ๐ฎ๐ฑIsrael heyyo Jerusalem
In the MR I don't use article, but xb_page :-)
- ๐ฎ๐ฑIsrael heyyo Jerusalem
The tricky part was to figuring out which media target id for each component image (components.input).
The export of XB page, especially media inside component is for now not supported by default_content module โจ Experience Builder support Active . - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Thanks! I'll review+test.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
I was testing on vanilla D11...
$ ddev drush recipe themes/contrib/demo_design_system/starshot_demo/recipes/starshot_demo_content/ 3/10 [โโโโโโโโโโโโโโโโโโโโโโโโโโโโ] Installed configuration for Basic HTML editor recipe. In TypedDataManager.php line 204: Property pathauto is unknown. Failed to run drush recipe themes/contrib/demo_design_system/starshot_demo/recipes/starshot_demo_content/: exit status 1
after installing pathauto:
$ ddev drush recipe themes/contrib/demo_design_system/starshot_demo/recipes/starshot_demo_content/ 3/10 [โโโโโโโโโโโโโโโโโโโโโโโโโโโโ] Installed configuration for Basic HTML editor recipe. In Evaluator.php line 44: No data provided to evaluate expression โน๏ธโentity:media:imageโfield_media_imageโโalt Failed to run drush recipe themes/contrib/demo_design_system/starshot_demo/recipes/starshot_demo_content/: exit status 1
which is the bug we've been working around.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
I tried pulling out xb_page into its own recipe and loading all the non-xb_page content first, but still get the same error.
I'm going to switch to another MR right now but I'll try to look at this again after that.
- ๐ฎ๐ฑIsrael heyyo Jerusalem
I didn't test on D11.
This is the command I just used to test with latest xb-demo repo.
mkdir xb-demo-new cd xb-demo-new ddev config --project-type=drupal11 --docroot=web ddev composer create phenaproxima/xb-demo --stability=dev ddev start cd web/themes/contrib/demo_design_system git remote add demo_design_system-3511654 https://git.drupalcode.org/issue/demo_design_system-3511654.git git fetch demo_design_system-3511654 git checkout '3511654-convert-sdds-page--front.html.twig' ddev drush site:install --account-name=admin --account-pass=admin -y ddev drush cr ddev drush recipe themes/contrib/demo_design_system/starshot_demo/recipes/starshot_demo_content/ ddev drush cr
The last part should not be necessary, but if not, the installation of xb-demo recipe doesn't find starshot_demo sdc components not really sure why. So as workaround, clearing the cache and reapply starshot_demo_content recipe does the trick.
ddev drush cr ddev drush recipe themes/contrib/demo_design_system/starshot_demo/recipes/starshot_demo_content/ ddev drush cr
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
I started those steps but it's hanging on:
Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme
and won't let me kill it... blargh.
- ๐ฎ๐ฑIsrael heyyo Jerusalem
Weird.
Maybe ddev version issue ?
I'm using ddev version v1.24.3. - ๐ฎ๐ฑIsrael heyyo Jerusalem
I understood why applying applying xb-demo recipe during the site install shows errors related to components not found.
xb-demo recipe has a dependency on starshot_demo_content, which provides the demo page. But the starshot_demo theme which contains the needed SDC components is not yet installed and not yet the active theme, so components are not available yet.
1. So removing this dependency in xb-demo
recipes: - starshot_demo_content
2. Then
ddev drush cr
, to make SDC components available. Any other way ?
3. Then applyddev drush recipe ../recipes/starshot_demo_content
- ๐ฆ๐บAustralia pameeela
FYI as I can't fix it myself, the username 'pameela' (with two e's) often gets mistaken for mine (three e's) and gets free credit! (Just noticed this one when fixing up another one!)
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Lionel has new code that he zipped up and sent me that includes the new header/footer/social media components.
I'll try to open a new MR with that.
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
I don't think I got the correct zip but I'll check again tomorrow. Unassigning in the meantime.
-
kristen pol โ
committed 0c14e43e on 1.0.x authored by
heyyo โ
Resolve #3511654 "Remove page front twig"
-
kristen pol โ
committed 0c14e43e on 1.0.x authored by
heyyo โ
- ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Note that, due to issues with XB config and default content, the home page will be built programmatically with xb-demo:
https://github.com/phenaproxima/xb-demo/blob/main/web/profiles/drupal_cm...
So... we'll want to update our docs soon to recommend xb-demo as the way to install for those who just want to play with XB:
๐ Update SDDS docs to have section for xb-demo install Postponed
If people install with vanilla D11, they won't have a home page.