Registering custom template using new plugin architecture
See original GitHub issueHello
I’m trying to register a custom template using the new plugin architecture.
import {Formio} from "react-formio";
import myTemplate from '@digitalpatterns/my-template';
Formio.use(myTemplate);
However the template is not being applied. When i try to debug I see the following:
The above looks ok in that i got my template…
The above shows that key is actually the index for example 0, 1.
@randallknutson Have you seen this when using the semantic template?
Edit: After making a small change to the formiojs code locally i over came the issue with key being ‘0’ by doing:
Object.keys(plugin).forEach(key => {
...
}
However what i am noticing is:
the default template hasn’t is null.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Add Page Templates to WordPress with a Plugin - WPExplorer
A look at the code you need to dynamically create WordPress Page Templates directly through PHP without having to access the theme itself....
Read more >Tutorial: Write and register a plug-in - Microsoft Learn
Create a Visual Studio project for the plug-in. Open Visual Studio and open a new Class Library (.NET Framework) project using .
Read more >WordPress Plugin Development Best Practices: Template Files
However, Easy Digital Downloads looks for customized templates in a directory called EDD_Templates in the theme root directory. This name can be ...
Read more >Plugin Architecture - The simpler media website CMS
These plugins let Zenphoto developers provide choices for how the particular feature is handled. The folder residence is the same as for Template...
Read more >How to package up your custom blocks in a plugin (Part 2)
Move the register / configure code for our custom block to the plugin; Move the template files; Change where (custom file path) Genesis...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay. I pushed up an updated branch. Still working on it but it should work better now. I’ll have more by the end of the day.
This is working now. thanks @randallknutson