-
Notifications
You must be signed in to change notification settings - Fork 349
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
How to insert a link in docx in docxtemplator 3.0? #408
Comments
I think the module should support v2 as well as v3. You have to write :
You probably forgot the |
Hmmm. The changelog.md clearly says 'The module system was completely changed, no compatibility is kept between version 2 and version 3, please make sure to update your modules if needed.'. I also can see active issue for this link module: issue. Here is my sample:
Docxtemplator throws an error from attachModule saying that it didn't find any important functions. They are indeed not there. Double checking - does Docxtemplator v3 supports modules written for v2? PS: new is there :) |
Ok indeed, I see, you're right, the two modules systems are incompatible. In the link-module, you have functions defined as :
The current API methods are You can find example modules on https://github.com/open-xml-templating/docxtemplater/blob/master/es6/modules/render.js (they are other modules in these directories). |
Looks like there is a solution for inserting links for docxtemplator 2.0 using docxtemplater-link-module. But this module doesn't work with docxtemplator 3.0:
I wonder whether docxtemplator 3.0 provides link support out-of-the-box? Or is there a guidance how to convert modules from v2 to v3?
The text was updated successfully, but these errors were encountered: