Closed (fixed)
Project:
Starshot Demo Design System
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2025 at 15:59 UTC
Updated:
21 Mar 2025 at 15:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kristen polLink to https://github.com/phenaproxima/xb-demo
Comment #4
kristen polClarify summary steps
Comment #8
kristen polAdding credit for Slack discussions and testing and
https://github.com/phenaproxima/xb-demo/issues/17
Comment #9
kristen polAdd parent
Comment #10
kristen polI 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:
#3510426: Create SDDS global header config
#3511866: Create SDDS global footer config
For now, we can manually run the media recipe before the node recipe so that XB doesn't bomb on the alt text:
#3511805: Fix or workaround XB image alt bug that prevents saving SDDS components
Note: there is a Slack thread with lots of details on testing this that I won't get into this issue.
Comment #12
gábor hojtsyDries 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.
Comment #13
heyyo commentedIn the MR I don't use article, but xb_page :-)
Comment #14
gábor hojtsyIndeed, my bad. Yay!
Comment #15
heyyo commentedThe tricky part was to figuring out which media target id to manually set for each image used in any component (components.input).
The export of XB page, especially media inside component is for now not supported by default_content module.
Comment #16
heyyo commentedComment #17
kristen polThanks! I'll review+test.
Comment #18
kristen polI was testing on vanilla D11...
after installing pathauto:
which is the bug we've been working around.
Comment #19
kristen polI 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.
Comment #20
heyyo commentedI didn't test on D11.
This is the command I just used to test with latest xb-demo repo.
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.
Comment #21
heyyo commentedComment #22
kristen polI started those steps but it's hanging on:
and won't let me kill it... blargh.
Comment #23
heyyo commentedWeird.
Maybe ddev version issue ?
I'm using ddev version v1.24.3.
Comment #24
heyyo commentedI 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
2. Then
ddev drush cr, to make SDC components available. Any other way ?3. Then apply
ddev drush recipe ../recipes/starshot_demo_contentComment #25
pameeela commentedFYI 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!)
Comment #26
kristen polWhoops … fixed
Comment #29
kristen polLionel 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.
Comment #31
kristen polI don't think I got the correct zip but I'll check again tomorrow. Unassigning in the meantime.
Comment #35
kristen polNote 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:
#3514213: Update SDDS docs to have section for xb-demo install
If people install with vanilla D11, they won't have a home page.
Comment #36
kristen pol