Comments (5)
@jaapjansma you just have to add the mixin tag to your info.xml, per #233, you should type:
civix mixin:menu-xml
So I think this is a documentation issue rather than a bug?
from civix.
@jaapjansma Yeah, to rewind a half-step -- civix v22.05 has converted several boilerplate hooks to mixins. This article describes the change in more detail: https://civicrm.org/blog/totten/civix-v2205-how-remove-million-lines-extra-code
Key points:
- If an extension was initialized before v22.05, then you should run
civix upgrade
to convert it. (This removes the hooks and updatesinfo.xml
). - If you create a new extension on v22.05, it will activate mixins as-needed (ex:
generate:page
needs to register menu items; so it activates<mixin>[email protected]</mixin>
). Here's how that should look: https://gist.github.com/totten/c15833c5fd5937924427b977cc2f3ff1
If that doesn't help solve the issue, then there could be some bug or omission (in how civix applies changes). A quick-and-dirty resolution could be this: activate all mixins. (This is functionally equivalent to the old templates -- which activated all boilerplate.) This command should work on civix v22.05.5+:
civix mixin --enable-all
Of course, if there is some bug or omission, then it would be great to learn more (eg a link to an extension that doesn't upgrade cleanly; or a console log where it fails to enable a mixin). I do have a feeling that we'll find some cases that need more polish.
from civix.
Ah ok. I did not try the mix-in method I was not aware I should do that.
from civix.
Civix will automatically convert your extension to using mixins (in a backward-compatible way using shims) if you type civix upgrade
.
from civix.
It sounds like we can close this. Feel free to reopen if there's another issue.
from civix.
Related Issues (20)
- civix generate:entity-boilerplate Not generating SQL in correct order for dependancies HOT 3
- Teach civix about the [email protected] mixin HOT 6
- generate:entity-boilerplate errors output in auto_install.sql HOT 4
- generate:entity-boilerplate clean up issues HOT 5
- civix repair? HOT 4
- Boilerplate tempate(s?) idea
- Menu mixin problem on older version of civi HOT 9
- php8 - civix upgrade - preg_match(): Passing null to parameter 2 ($subject) of type string is deprecated in src\CRM\CivixBundle\Upgrader.php on line 244 HOT 1
- Failed to locate scan-classes@1/mixin.php HOT 2
- `Civibuild create` fails with Redis due to cached extensions HOT 3
- php 8.1 compatibility HOT 2
- Smarty local mix-in missing? HOT 4
- php codesniffer warnings HOT 2
- Civix could (or should?) offer in-line-replacements for dropped deprecated functions HOT 9
- Error running generate:module HOT 5
- Civix 23.08.1 Fatal Error with php 7.4 HOT 4
- Support setting-admin mixin HOT 1
- Database Upgraders - Continuing support for <5.37? HOT 1
- Polyfill: Int instead of bool as input type on `var_export()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civix.