Giter VIP home page Giter VIP logo

Comments (8)

tbaddade avatar tbaddade commented on June 25, 2024 1

Könntest du testen, indem du deinen Aufruf mal deaktivierst. Ich könnte frühestens erst nächste Woche testen.

from redaxo_watson.

tbaddade avatar tbaddade commented on June 25, 2024

Ist das die Version aus dem Installer oder die GH Version? Ich kann hier mit 2.1.0 in REX 5.8 den Fehler nicht reproduzieren.

from redaxo_watson.

tbaddade avatar tbaddade commented on June 25, 2024

Existiert dieser Part in deinem HTML

<script type="text/javascript">
    <!--
    if (typeof($watsonSettings) == "undefined") {
        var $watsonSettings = {"resultLimit":20,"agentHotkey":"17-32","quicklookHotkey":"91","backend":true,"backendUrl":"index.php?page=watson","backendRemoteUrl":"index.php?page=watson&watson_query=%QUERY","wildcard":"%QUERY"};
    }
    //-->
</script>

from redaxo_watson.

alxndr-w avatar alxndr-w commented on June 25, 2024

Nein, der Part existiert nicht.

Es ist die Installer-Version 2.1.0

from redaxo_watson.

tbaddade avatar tbaddade commented on June 25, 2024

Entweder existiert der EP PAGE_HEADER bei dir nicht oder es werden keine Providers wie diese hier geladen
https://github.com/tbaddade/redaxo_watson/blob/master/package.yml#L14-L20

Hast du irgendwelche Anpassungen gemacht oder ist es eine Standardinstallation?

from redaxo_watson.

alxndr-w avatar alxndr-w commented on June 25, 2024

Hast du irgendwelche Anpassungen gemacht oder ist es eine Standardinstallation?

Am Core habe ich nichts verändert. Ich nutze den page_header-EP selbst in einem Addon. Das sollte jedoch kein Problem darstellen, oder?

from redaxo_watson.

alxndr-w avatar alxndr-w commented on June 25, 2024

Tatsächlich. Wenn ich ihn deaktiviere, klappt Watson wieder. Aber warum?

//    rex_extension::register('PAGE_HEADER', 'backend_style_css', rex_extension::LATE);
function backend_style_css() {
  $backend_icon = "";
...
    $css = '
    <style>
    .icon-logo {
        display: inline-block;
        background-image: url('. $backend_icon .');
        width: 20px;
        height: 20px;
        margin-left: -28px;
        margin-right: 3px;
        background-position: 0 0;
        background-repeat: no-repeat;
        background-size: 20px 20px;
        vertical-align: middle;
    }
    </style>';
    return $css;
}

from redaxo_watson.

alxndr-w avatar alxndr-w commented on June 25, 2024

Konnte die Frage selbst beantworten. Man muss den $ep mit abfragen und das subject wieder mit anhängen, also:

function backend_style_css($ep) {
...
return $ep->getSubject().$css;
}

from redaxo_watson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.