efflux / TextModuleFree

Enables creating and managing text modules to quickly reply to customers with pre defined text.
https://efflux.de/en/add-ons/4/Text+Module/
0 stars 1 forks source link

Add support for OTOBO #1

Open wornet-aer opened 3 years ago

wornet-aer commented 3 years ago

Trying to install TextModule-6.0.1.opm on OTOBO 10.0.9 results in the following error:

Bitte beachten Sie, dass Ihre installierte OTOBO-Version 10.0.9 ist.
Dieses Paket kann nur mit OTOBO-Version 6.0.x oder neuer verwendet werden. 

Is there already an OTOBO compatible version of this plugin somewhere?

eyazi commented 3 years ago

We are currently waiting for the OTOBO Market for Partners to go online before we update all free and premium packages to OTOBO. Theoretically, the OTOBO command "Dev::Tools::Migrate::OTRSToOTOBO" should be able to funny convert the package, but we did not test that yet for TextModuleFree. I unfortunately have to ask for patience. If you need it faster, you can always contact us at support@efflux.de.

wornet-aer commented 3 years ago

After some struggeling with the OTOBO Console, I've finally managed to convert the TextModuleFree package to OTOBO and build it again.

In case someone else is searching for a method to convert an existing OTRS plugin to OTOBO, here are my rough steps:

  1. Extract source from existing OPM mkdir /opt/otobo/var/tmp/TextModule cd /opt/otobo/var/tmp/TextModule Copy or download TextModule-6.0.1.opm mkdir target /opt/otobo/bin/otobo.Console.pl Dev::Tools::Migrate::OTRSToOTOBO --cleanall --target target/ TextModule-6.0.1.opm
  2. Change PackageIsDownloadable Flag from 0 to 1
    vi target/TextModule.sopm
    [...]
    <PackageIsDownloadable>1</PackageIsDownloadable>
    [...]
  3. Build package again /opt/otobo/bin/otobo.Console.pl Dev::Package::Build --module-directory target/ target/TextModule.sopm target/
  4. Install freshly built plugin /opt/otobo/bin/otobo.Console.pl Admin::Package::Install target/TextModule-6.0.1.opm
eyazi commented 3 years ago

Thanks for sharing your progress! PackageIsDownloadable is actually a flag we've removed from our future projects, and I'll update all old projects too, so this doesn't happen to anyone else.

wornet-aer commented 1 month ago

The TextModule package needs some adjustments for running with OTOBO 11 as the CKEditor has been upgraded to version 5 and the old CKEDITOR JS constant is no longer available.

As soon as I find a solution to this, I will post it here.