-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i create a theme-creativeshop grandchild? #73
Comments
I managed to figure out what went wrong. Going to answer my own question here in case anyone will face the same issue. It turns out the The parent theme is matched using the following regex: Then when a match has been found in parentAliases.js, the parentPath is resolved using parentAliases.js snippet...
const parentMatch = themeXML.match(
/<parent>[a-z]+\/[^\-]+\-([a-z]+)<\/parent>/i
);
if (parentMatch) {
const parentName = parentMatch[1];
const parentPath = path.resolve(`../theme-${parentName}`);
... ConclusionA theme must be named so that it will match the following regex: This will work: This will not work: |
I'm not sure if current behaviour is expected, feel free to close this issue if it is. |
It would be nice to add support for When we create a child theme now for a customer we name it cust creativestyle/theme-customer. Theme to clearly show it is a theme. And then no dashes. This is by design. It would be nice if somebody adds this support. |
I checked our projects, we we see that we have themes like I am not sure why -child is not working for you. |
Thanks for checking. The |
I added support for this in a PR in the frontend-builder repo. Would be great if it gets accepted 😄 |
Thank you for your contribution. We will check your implementation internally and in case everything will be fine, we will merge it. |
Hi,
I'm currently doing some experiments with theme-creativeshop. I created a child theme which is working perfectly! I extended the child theme and would like to create another child based on the child, resulting in the following inheritance structure:
I generated a new child using
mtg
according to the guide and changed the following line ingrandchild/src/theme.xml
:to
However, when building the grandchild i encounter the following error in
yarn build
:Reverting the parent to theme-creativeshop the theme builds again (making it child instead of grandchild). I now start to wonder if this scenario is supported or not (yet?) hence i opened this ticket. Can i create a grandchild of theme-creativeshop? Am i doing something wrong?
The text was updated successfully, but these errors were encountered: