Skip to content

Conversation

@jaxwilko
Copy link
Member

@jaxwilko jaxwilko commented Oct 6, 2022

This PR adds support for a theme to extend another theme via a parent: [themeName] directive in the theme.yaml. This PR also supports the theme.yaml being added as a DbDatasource content meaning that an extending theme can be purely driven by the DB.

Storm PR: wintercms/storm#123

@LukeTowers LukeTowers added this to the v1.2.1 milestone Oct 6, 2022
@LukeTowers LukeTowers added enhancement PRs that implement a new feature or substantial change Status: In Progress labels Oct 6, 2022
@LukeTowers LukeTowers changed the title [WIP] Add support for allowing a theme to extend a theme [WIP] Add support for Child Themes Oct 6, 2022
@mjauvin
Copy link
Member

mjauvin commented Oct 7, 2022

@jaxwilko Do we want this PR for 1.2.1 since it's still a draft?

@jaxwilko
Copy link
Member Author

jaxwilko commented Oct 7, 2022

@mjauvin still got some bugs that need to be fixed before it's ready for review :)

@mjauvin
Copy link
Member

mjauvin commented Oct 7, 2022

So it's mostly done, just has a few glitches?

@LukeTowers
Copy link
Member

@mjauvin this functionality is needed for our project that we're launching in November so what release it's tagged for doesn't really matter since it'll be merged when it's ready. Don't consider it blocking against 1.2.1 though.

LukeTowers pushed a commit to wintercms/storm that referenced this pull request Oct 9, 2022
@LukeTowers LukeTowers modified the milestones: v1.2.1, v1.2.2 Oct 20, 2022
Also performs the sync with model instances rather than just raw IDs to support relationships with a custom relatedKey set (the key on the related model's table that is stored on the pivot table to connect the relationship, normally just the primary key but can be anything).
…d-themes-luke

* commit '966edea734a0e330f19ebe2547a1332ed39cb907':
  Set pivot data when initially syncing the relationship
  Update jobs tables to support Laravel 9 (#730)
  Add migrate to list of protected commands (#733)
  Add "Send password reset email" button to backend users update page (#723)
  Adjust descriptor for local event
  Change event doc to test new event functionality in Docs plugin
  Removed NPX from webpack bin call (#728)
  Add test case for getParentData method in AJAX framework
  Recompile Snowboard
  Allow for custom AJAX error responses to be passed through handlers
  Allow detached AJAX request to be called with 2 params
  Improve IDE knowledge of the PluginBase object
  Fix support for data-request-parent
* develop:
  Set pivot data when initially syncing the relationship (#739)
  Added CLI signature to mix:list command
  Fix Navigation Manager unit test
* develop:
  Set pivot data when initially syncing the relationship (#739)
  Added CLI signature to mix:list command
  Fix Navigation Manager unit test
  Update jobs tables to support Laravel 9 (#730)
  Add migrate to list of protected commands (#733)
  Add "Send password reset email" button to backend users update page (#723)
  Adjust descriptor for local event
  Change event doc to test new event functionality in Docs plugin
  Removed NPX from webpack bin call (#728)
  Add test case for getParentData method in AJAX framework
  Recompile Snowboard
  Allow for custom AJAX error responses to be passed through handlers
  Allow detached AJAX request to be called with 2 params
  Improve IDE knowledge of the PluginBase object
  Fix support for data-request-parent
jaxwilko and others added 4 commits December 8, 2022 18:08
* develop:
  Fix issue with autoloading modules (#792)
  Add support for icon picker (#725)
  Classloader improvements (#779)
  Update Markdown content test
  Improved Ukrainian translation (#766)
  Add AJAX form validation to Snowboard (#777)
  Improve theme scaffolding (#778)
…-caching

[FIX] Added fix to allow nested AutoDatasource instances to manage their own populateCache
@jaxwilko jaxwilko marked this pull request as ready for review March 1, 2023 12:18
@LukeTowers LukeTowers changed the title [WIP] Add support for Child Themes Add support for Child Themes Mar 1, 2023
@LukeTowers LukeTowers merged commit 1adb3ab into develop Mar 1, 2023
@LukeTowers LukeTowers deleted the wip/child-theme branch March 1, 2023 13:42
LukeTowers added a commit to wintercms/docs that referenced this pull request Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement PRs that implement a new feature or substantial change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Possibility to include partials outside of the theme Add support for child themes and nested layouts

4 participants