plone / plone.formwidget.autocomplete

z3c.form widget for Plone using jQuery Autocomplete
https://pypi.org/project/plone.formwidget.autocomplete
2 stars 12 forks source link

Precompile Bundle for plone6 #31

Open Nimo-19 opened 1 year ago

Nimo-19 commented 1 year ago

Hi

somehow it seems not the prettiest fix i have written. But It is the way I fixed this Addon for our plone6 migration. Maybe it can help somehow.

I concatenated the jquery.autocomplete.min.js and the formwidget-autocomplete.js to minify all with terser (npm run minify does all this) In addition I registered the jquery-autocomplete directory as a plone:static dir (somehow resourceDirectory does not seem to work anymore) At last I modified the reosurces in the resource.xml to the bundle (as a ++resource++plone.formwidget.autocomplete/ url )

At first I tried to doe something with the zcml:condition to only use a plone6 profile but i could not get it to work.

mister-roboto commented 1 year ago

Jonathan Hofmann your emails are not known to GitHub and thus it is impossible to know if you have signed the Plone Contributor Agreement, which is required to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement How to add more emails to your GitHub account: https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/adding-an-email-address-to-your-github-account