2 / 2
Jul 2020

Dear Developers,
as discussed in a previous post

I have custom widgets installed that work fine with version 19.1
In 20.1 the etemplate2_register_widgets hook get executed but the widget is not registered and etemplate shows only a placeholder:
image
In the logs I don’t see any relevant error message.
Could you please help,

Thank you and best regards,
Alex

  • created

    Jul '20
  • last reply

    Jul '20
  • 1

    reply

  • 789

    views

  • 2

    users

  • 2

    links

I guess, based on the 19.1 - 20.1 changes are mostly client-side, that the problem is not the registration, but that the client-side code of the widget is not working, probably because it’s not ported to TypeScript and therefore no longer considered an eT2 widget.

Even if we had time to allow registering “old” javascript based widgets, in a long run, you have to migrate them anyway. And if your widgets extend our widgets, there’s nothing left to extend, because they are all TypeScript now.

So I think your best bet is to start migrating the widgets to TypeScript :slight_smile:

Unfortunately the process is not documented, though with our existing widgets you have many examples. There is a script which does some (not all!) of the necessary TypeScript migration:

Pull requests to extend the script or our documentation, are - as always - more then welcome :wink:

Ralf